PROTECTED]
Sent: Tuesday, November 26, 2002 12:34 AM
Subject: Re: [JAVA2D] STROKE_CONTROL
Hi Ramón,
Use the Area class to either subtract or intersect the original shape
with/from the outline created with BasicStroke.createStrokedShape().
Intersection will produce the inside part, subtract
I am trying to draw a 2D polygon with a border
stroke with a width of 2.0, but I want those 2.0 to go completely inside the
polygon borderline, I mean, normallyhalf the line width goes outside and
the other half goes inside, but I want to have it completely outside or
completely inside,
I don't think there is a flag you can set or something easy like that.
You could double the stroke width and set up a clip to either mask off the
inside or the outside of the shape you wish to outline.
David
Quoting Ramón Talavera [EMAIL PROTECTED]:
I am trying to draw a 2D polygon with a
PM
Subject: Re: [JAVA2D] STROKE_CONTROL
I don't think there is a flag you can set or something easy like that.
You could double the stroke width and set up a clip to either mask off the
inside or the outside of the shape you wish to outline.
David
Quoting Ramón Talavera [EMAIL PROTECTED]:
I am
wish :).
Thanks,
Ramón Talavera
- Original Message -
From: Dave Kavanagh [EMAIL PROTECTED]
To: Ramón Talavera [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 11:12 PM
Subject: Re: [JAVA2D] STROKE_CONTROL
I don't think there is a flag you can set or something easy