T
Thorsten Kiefer
Hi,
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
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