Circles and Curves

javra <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
Hi,

when I draw a circle in a SVGGraphics2D element like follows:

gfx = new SVGGraphics2D(document);
        Shape circle = new Ellipse2D.Double(0, 0, 100, 100);
        gfx.setPaint(Color.gray);
        gfx.draw(circle);

how can Batik distiguish between circles and non-circles if the circle is
actually only an approximated circle and a sequence of bezier curves? (I
don't have a problem witht his but I'm just about to implement a Shape
consisting of a sequence of circle segment and wonder how this is
possible...)

Regards
javra


--
View this message in context: http://batik.2283329.n4.nabble.com/Circles-and-Curves-tp4463908p4463908.html
Sent from the Batik - Users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.