Re: bounds of line2d
- From: Jeff Higgins <oohiggins@xxxxxxxxx>
- Date: Thu, 31 Jul 2008 09:11:18 -0400
Thorsten Kiefer wrote:
Hi,from the javadocs - "Only closed paths and sub-paths are stored".
the following code
System.err.println(new Line2D.Double(0,0,20,20).getBounds2D());
System.err.println(new Area(new Line2D.Double(0,0,20,20)).getBounds2D());
produces the following output :
java.awt.geom.Rectangle2D$Double[x=0.0,y=0.0,w=20.0,h=20.0]
java.awt.geom.Rectangle2D$Double[x=0.0,y=0.0,w=0.0,h=0.0]
Is there a way to make the area object have the same boundaries
as the line object ?
Best Regards
Thorsten
.
- References:
- bounds of line2d
- From: Thorsten Kiefer
- bounds of line2d
- Prev by Date: Re: Terminolgy: the verb corresponding to "toString"
- Next by Date: Re: Terminolgy: the verb corresponding to "toString"
- Previous by thread: Re: bounds of line2d
- Next by thread: Finding simple Java class for implementation of text recognition
- Index(es):