Larry Ai wrote:

All:

    I generated a svg document (using
SVGGraphic2D.stream()) from a SVGGraphic2D object.

    I discovered that there are duplicates in the
output:

These aren't really 'duplicates' one is the fill one is the stroke. The problem is that Java2D doesn't have a fill/stroke operation and due to concerns about 'morphing' shape objects it is difficult to ensure that the filled shape is the same as the stroked shape.

    There are the same polygons (same x and y
coordinates) but with some different attributes.

    Does anyone know how to get rid of those
duplicates?

Write code to detect when the stroked object is the same as the immediately previously filled object (perhaps by comparing the generated 'd' attributes?) in the SVGGraphics2D or AbstractGraphics2D class and contribute it to Batik :)




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to