Filling shapes
Hi,
just one easy question with inDesign CS6:
how I can fill a rectangle (i.e.) with dashed lines ?
I searched for a response but without results.
Thank you,
Joe
You need to create a pattern in Illustrator and import (place) it as ai file in a frame in InDesign. The old patterns from PageMaker don't exist any more.
Similar Messages
-
Turn a broad stroke into a filled shape?
Hi there,
I've made some lines/paths using a broad 20pt stroke which tapers to a point (using variable width profile).
is it possible to turn these paths into filled shapes so the paths would become the outer edges of the current stroke?
thanks for any help!
using CC
SteveYes, you can convert a stroke to a filled shape.
You can use either object>expand appearence then ungroup
or
You can use object>path>outline stroke -
Hi there,
this might be a very simple question, but couldn't figure it out ..
I made a Title in Premiere and I want to draw a shape with the pen tool.
However this only results into a shape with line instead of it being filled.
So my question: how to draw a filled shape in Premiere Pro with the pen tool?
Thanks in advanceSet Graphic Type to Filled Bezier, that will fill the shape.
-
Graphics2D fill(Shape) problem
When I use fill(shape), I try to draw fill graphics2D. The color of shape is there, but the center color of shape dispear after I finish drawing?
Who can tell me?
Thanks you very much!Based on the demo code you provided I would guess line 13 is the problem.
Here is an example demo program:
import java.awt.*;
import javax.swing.*;
public class FaceComponent
public static void main(String args[])
JPanel face = new JPanel()
protected void paintComponent(Graphics g)
super.paintComponent(g);
((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
g.drawArc( 100, 45, 80, 80, 0, 360);
g.setColor( Color.blue );
g.drawArc( 120, 70, 10, 10, 0, 360);
g.setColor( Color.blue );
g.drawArc( 150, 70, 10, 10, 0, 360);
g.setColor( Color.magenta );
g.drawLine ( 140, 85, 140, 100 );
g.setColor( Color.red );
g.drawArc ( 110, 55, 60, 60, 0, -180 );
face.setBackground(Color.WHITE);
face.setPreferredSize( new Dimension(250, 250) );
JScrollPane scrollPane = new JScrollPane( face );
scrollPane.setPreferredSize( new Dimension(300, 200) );
JFrame frame = new JFrame();
frame.getContentPane().add( scrollPane );
frame.pack();
frame.setLocationRelativeTo( null );
frame.setVisible( true );
}Hopefully your next posting will provide more information than the first posting. -
Filling shapes and changing line weights will not show until export.
When I draw a character, i cannot change line weight of fill shapes. When I do so it remains unchanged, however once I export everything is fine and okay.
This image below is how it looks. Even though it is colored.
Once I export I get this
Can someone please help me?menu/view/outline
or pres command+y -
Creating Gradient-filled shapes via JSFL CS5.5?
I'm trying to use JSFL to create a number of oval shapes on a layer, that have a gradient fill applied to them. I've stripped down the JSFL to very bare bones which I will post here:
var flashDoc = fl.getDocumentDOM();
var flashLib = flashDoc.library;
var flashTimeline = flashDoc.getTimeline();
// Set fill color for all shapes
var fill = flashDoc.getCustomFill();
fill.style = "radialGradient";
fill.color = "#FFFFFF"; // For some reason if I don't assign at least *something* here, the color array doesn't work and I get fully black shapes
fill.colorArray = ["#0033CC", "#FFFFFF"];
fill.posArray = [0, 255];
fill.focalPoint = 0;
fill.linearRGB = true;
flashDoc.setCustomFill( fill );
for( var i = 0; i < 10; ++i )
var x = Math.random() * 500;
var y = Math.random() * 400;
var radius = Math.random() * 25 + 25;
var left = x - radius;
var top = y - radius;
var right = x + radius;
var bottom = y + radius;
flashDoc.addNewOval( {left:left, top:top, right:right, bottom:bottom}, false, true );
When I run this script I do not get the results I'm expecting. I get a number of oval shapes that all share the same gradient transform, i.e., each shape only gets part of the gradient. The documentation says this function should be equivalent to using the draw oval tool, yet when you use that tool each oval you draw is associated with its own gradient transform.
My Questions:
1. Am I missing a piece here to create shapes each with their own gradient transform?
2. Is it a bug that I have to set something into fill.color, even though I'm supplying a color array? If I set nothing there, all the shapes will draw in full black.
3. Is there a way to specify gradient colors that include alpha?
Thanks for your time.Yep, that made the rest of my whole day!! Works excelllent in the demo, and i'm just replacing all the Image<->Triangle commands. Wonderfulll & thanks a lot, LitDev. (enjoint the sb sample in your Test-DL :-))
PS:
Controls.SetTextBoxText(Controls.AddTextBox(10,10), "Enter your name here...")
Controls.AddButton(".. then press the Button", 180,10)
LDGraphicsWindow.Capture("","")
GraphicsWindow.Clear()
GraphicsWindow.DrawImage("ImageList1", 0,0) -
Using parallax scrolling on a browser fill shape?
Hi everyone,
Is it possible to apply parallax scrolling onto a shape that is extended to horizontally fill up the browser? I'm creating a single page scroll website and a want a shape to cover up a certain fraction of the bottom of the browser (I can't use pin because then the shape will move with the bottom of the browser depending on the size of the window.) Parallax works fine on the shape until I extend it to the browser borders and then parallax grays out. Will this be supported in a future update? Is there another way for me to achieve this effect? Thanks!
JackieFrom Muse Release Notes - http://helpx.adobe.com/muse/release-note/adobe-muse-release-notes.html.
Note Scroll Motion Effects are not available for 100% browser width objects, pinned objects, items that are inline within text, items within a group or items within a widget.
You would also find a similar note in the information tooltip for Scroll Motion under the Effects panel in the Control strip. Please feel free to submit it as a feature request in our Ideas section.
Thanks,
Vinayak -
How to fill shape with pattern... and cut outline?
I have an old plotter that works great for making drawings. I can fill a shape with a pattern, convert the pattern to outlines (or strokes) BUT my problem is that the outline of the original shape remains, and this will be plotted. I do not want an outline of the original shape, I want the pattern to create the shape. Any ideas? Also, shape stroke remains part of the art (even if stroke = none before object/expand/ungroup/divide)
aha!
made scribble
expanded scribble
put shape in front
select all, ctrl+7 (masked scribble to shape)
pathfinder/crop
solved. thanks! sishamDSS! -
Stroked text: when converted to outlines can the stroke be "consumed" by the fill shape?
I'm wanting to simplify a logotype. Currently the letterforms are filled and stroked. Is there a way to join the fill and stroke so that I have only a filled object with no stroke but with the same dimensions as the original fill + stroke combined? I had thought this might be a pathfinder operation but don't find one that does what I'm after.
Thanks for any pointers.
w.One way:
1. Convert letterforms to outlines. Fill and stroke are preserved.
2. Select all and choose Outline from the Pathfinder panel. This will create shapes that are the combined size of fill and stroke but will remove all color.
3. Re-fill the shapes with the original fill color of the letterforms. -
Fill shape drawn with pen tool
There are three posts dealing with this issue and each time the person who posted the problem said they figured it out but did not say what they did. Here is the problem:
I draw a shape with the pen tool in Flash CS4. I made sure the shape was closed. But, I cannot fill the shape no matter what. Paint bucket tool does not work. Whatever I do, I get the red diagonal line on the fill color. I can fill a shape with the rectangle or oval tools but not the pen tool.
Please help. Thanks.Thanks for your help. I tried what you suggested but the union selection was grayed out. I was in the drawing object mode. But after fooling with it for a bit the following worked (I'm still not sure why):
I double clicked on the object with the selection tool.
I then selected a fill color in the property panel and it filled in.
However, I cannot replicate this. I tried drawing another shape with the pen tool and cannot fill it in. I tried converting it to a symbol and that did not work either. I must have done something to the original shape that allowed me to fill it in last time I fooled with it. -
PE 7- Help with Filling Shapes
Having trouble with something pretty basic (I thought)...
How do I fill a shape (rectangle, circle, etc) that I create on a Title from the toolbar?
When I select one of the shape tools, I can create one in the Title area but I can't figure out how to fill it with color.
Tried COLOR PROPERTIES but FILL is not 'active'.
Appreciate some enlightenment on this.
Thanks!
John
sr71 -at- comcast.netMy mistake... OOPS!
I selected a TITLE that must have had a transparent background (BLUENOTES_LWR_THIRD).
I usually start by selecting any TITLE then deleting the default graphics in it to create a black b/g.
From there, I make copies of the b/g and use those for my custom titles (Intro, end, etc.) which I add TEXT to.
Once I selected GENERIC1_TITLE, and deleted the default graphics, I was able to add RECTANGLE to it
and modify the fill color.
I know there's probably an easier/better way to create titles; just haven't had the time to 'explore' more.
Thanks for the quick reply!
John -
Fill shape with 2 solid colors
Hi,
I was wondering if there is an easy way to fill a roundRectangle2D with 2 solid colors. For example that 1/3 is blue and the other 2/3 is green? I've looked in the java graphics2D api but can't find anything. GradientPaint isn't what I'm looking for, so is there any other easy option.
Or is it the hard way and you need to draw several shapes on top of each other?
class EventPanel extends JComponent{
@Override
protected void paintComponent(Graphics g){
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g.create();
Double widthRect = (double) this.getWidth();
Double heightRect = (double) this.getHeight();
Double arc = widthRect / 20.0;
Float strokeSize = 1.0f;
Double offset = strokeSize / 2.0;
Double adj = offset * 2;
RoundRectangle2D.Double roundRect = new RoundRectangle2D.Double(offset, offset, widthRect - adj, heightRect - adj, arc, arc);
RenderingHints rh = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2.setRenderingHints(rh);
g2.setPaint(new Color(30, 144, 255, 80));
g2.fill(roundRect);
g2.setPaint(Color.BLACK);
g2.setStroke(new BasicStroke(strokeSize));
g2.draw(roundRect);
g2.dispose();
}Similar to this: Example Don't mind the quality. Not good at art.
Edited by: Kligham on 26-aug-2010 22:55
Edited by: Kligham on 26-aug-2010 22:58
Edited by: Kligham on 26-aug-2010 23:01Or is it the hard way and you need to draw several shapes on top of each other?What's so hard about that? But if you're looking for an alternative approach, you can do it with Graphicd$setClip(...)
GradientPaint isn't what I'm looking forWhat about LinearGradientPaint?import java.awt.*;
import javax.swing.*;
public class StepGradientPaint {
float[] fractions = {0F, 0.5F, 0.50001F, 1F};
Color[] colors = {Color.RED, Color.RED, Color.GREEN, Color.GREEN};
Paint paint = new LinearGradientPaint(0F, 0F, 200F, 0F, fractions, colors);
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
new StepGradientPaint().makeUI();
public void makeUI() {
JPanel panel = new JPanel() {
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g.create();
g2.setPaint(paint);
g2.fillRect(0, 0, getWidth(), getHeight());
g2.dispose();
panel.setPreferredSize(new Dimension(200, 200));
JFrame frame = new JFrame();
frame.add(panel);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}db -
Hi,
I am drawing some shapes using java.awt.Shape, java.awt.geom.Area and java.awt.geom.GeneralPath and would like to know whether it's possible to fill these closed shapes with a color - or even better - with a pattern.
Thanks!er, yes, why not?
http://java.sun.com/docs/books/tutorial/2d/geometry/strokeandfill.html
-Puce -
Fill Shape With Picture? student
Hello,
Is there a way to draw a shape and then fill it with a picture from a file?
Also, I'm not sure if that is the best way to put pictures into the program I am making... any advice?
- Jasonimport java.awt.*;
import java.awt.geom.*;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.*;
public class ShapeImage {
private JScrollPane getContent(BufferedImage source) {
BufferedImage framed = getFramedImage(source);
Box box = Box.createHorizontalBox();
box.add(Box.createHorizontalGlue());
box.add(new JLabel(new ImageIcon(source)));
box.add(Box.createHorizontalGlue());
box.add(new JLabel(new ImageIcon(framed)));
box.add(Box.createHorizontalGlue());
return new JScrollPane(box);
private BufferedImage getFramedImage(BufferedImage image) {
int w = 160, h = 160; // shape/frame size
int type = BufferedImage.TYPE_INT_RGB; // other options
BufferedImage out = new BufferedImage(w, h, type);
Graphics2D g2 = out.createGraphics();
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
Ellipse2D circle = new Ellipse2D.Double(0,0,w-1,h-1);
// Center image in circle frame.
double x = (w - image.getWidth())/2;
double y = (h - image.getHeight())/2;
AffineTransform at = AffineTransform.getTranslateInstance(x,y);
g2.drawRenderedImage(image, at);
// Mask out image pixels that lie outside of the circle disk.
Area mask = new Area(new Rectangle(0,0,w,h));
mask.subtract(new Area(circle));
// Use the desired background color.
g2.setPaint(UIManager.getColor("Panel.background"));
g2.fill(mask);
// Draw the circle/shape frame.
g2.setPaint(Color.red);
g2.draw(circle);
g2.dispose();
return out;
public static void main(String[] args) throws IOException {
BufferedImage image = ImageIO.read(new File("images/cougar.jpg"));
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(new ShapeImage().getContent(image));
f.pack();
f.setLocation(200,200);
f.setVisible(true);
} -
hi,
how can I fill a shape using JAI ? Is it a kind of convolution operation ?
I have binarized my image, and now I have a group of black pixels (we say, an hole) inside a face of white pixels.
thank youMy solution would be to work with the image in its raw format. Extract the image into a 2 dimensional array, loop throught the rows and columns and compare to your zero crossing window detector. after you have aquired the new image array, you set pixels that are next to an edge 0 and the rest #ffff. this will create a binary image (black and white) with the edges black and rest white. Be careful of your conventions used to determine what are edges. This may seem primitive, but thats just the way i think :P
-fastrike
Maybe you are looking for
-
Can I run my creative cloud for teams on more than one computer?
Can I run my creative cloud for teams on more than one computer?
-
Pages documents will no longer open in Microsoft Word.
IWork 08 -- Microsoft Office 2004 Any ideas? Thanks.
-
How to change organizational unit .
Hi Experts, I have a rule in which some responsibilities are defined. Could anyone please tell me how to change the values in the Rule like I want to change the persons listed there to someone else. Also if there is any way to change the organization
-
Photos disappear upon saving a new photo page
Hi, I updated to iweb 08 2.0.2. My previous site migrated over just fine. However, since updating iweb i have been unable to put any new pages up on the site. i have created a new page via iphoto and created one from iweb and drag and dropped the pho
-
I was attempting to restore from a backup in iTunes to an iPhone 5s. I have iTunes version 11.8.3, and the latest version of IOS 7.0. My phone will now not boot past the connect to iTunes screen. Can anyone please offer any suggestions? Thank you