Hi Olivier,

> So why on earth am I getting a PNG in the output? From my
> point of view this totally nullifies the potential usefulness
> of the software: if I wanted a PNG of the widget, there are
> easier ways to get one. Does anyone know what can be causing
> Batik to resort to an image instead of outputting "proper" SVG?

   You probably didn't shut off the Swing double buffer so
all Swing ever drew to the SVGGraphics was it's internal
offscreen image.  You might want to use the 
org.apache.batik.svggen.SwingSVGPrettyPrint.print
method that makes sure this is done properly and groups the
SVG a little nicer for a Swing hierarchy.

news <[EMAIL PROTECTED]> wrote on 04/17/2006 08:54:13 PM:

> I followed the instructions on the Batik SVG Generator page:
> http://xmlgraphics.apache.org/batik/svggen.html, albeit with
> a slightly more complex widget, and was shocked to see that
> the SVG output was actually a thin wrapper around a base64-
> encoded PNG! 

> I felt pretty confident that drawImage was not
> called anywhere but, just to be sure, I implemented my own
> subclass of SVGGraphics2D in which I traced all drawImage
> methods: this confirmed that they were not used.

   I'm not sure why this wouldn't have picked this up.  Perhaps
you invoked your subclass improperly or differently?


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

Reply via email to