Results 1 to 2 of 2
- 05-05-2010, 06:10 AM #1
Member
- Join Date
- May 2010
- Posts
- 1
- Rep Power
- 0
- 05-08-2010, 04:54 AM #2
Member
- Join Date
- May 2010
- Location
- northern california
- Posts
- 7
- Rep Power
- 0
PathIterator or Graphics2D.clip()
I don't know how precisely you want to control the fraction of your path which is drawn, but two approaches that come to mind include:
1) Using a PathIterator to sequence through the path's segments and drawing only those you wish to draw, and
2) Clipping the current graphics context using Graphics2D.clip() or Graphics.clipRect() prior to drawing. Shapes, and in particular, Areas (which is-a Shape) are used to specify the region that will not be drawn.
Similar Threads
-
double a * double b = weird output
By GPB in forum New To JavaReplies: 3Last Post: 03-26-2010, 10:40 AM -
Check if double is double
By marshalthrone in forum New To JavaReplies: 8Last Post: 09-30-2009, 02:51 PM -
how to draw an arc
By Baker in forum New To JavaReplies: 1Last Post: 04-16-2009, 09:05 PM -
non-static method add(double,double) cannot be referenced from a static context
By cravi85 in forum Java SoftwareReplies: 5Last Post: 03-21-2009, 09:32 PM -
Double.valueOf() vs Double.parseDouble()
By greenbean in forum New To JavaReplies: 10Last Post: 01-12-2009, 08:39 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks