You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Holger Knublauch <Ho...@faw.uni-ulm.de> on 2001/06/15 09:49:14 UTC

SVGGraphics and native Components

Hello group,

I would like to use the SVGGraphics2D to create an
SVG file from a complete JFrame (so that I can put
really nice screen-shots into a report).
Unfortunately, this does not seem to be possible for
native components like the Frame (in the output, the
frame is left blank, but all the JComponents inside are
converted pretty nicely.)

Any chance that I can have the frame in my SVG file 
(at least as a bitmap?)

Thanks
Holger


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: SVGGraphics and native Components

Posted by Thierry Kormann <tk...@sophia.inria.fr>.
On Friday 15 June 2001 09:49, you wrote:
> Hello group,
>
> I would like to use the SVGGraphics2D to create an
> SVG file from a complete JFrame (so that I can put
> really nice screen-shots into a report).
> Unfortunately, this does not seem to be possible for
> native components like the Frame (in the output, the
> frame is left blank, but all the JComponents inside are
> converted pretty nicely.)
>
> Any chance that I can have the frame in my SVG file
> (at least as a bitmap?)

you should be able to create a java.awt.Image from a Component (native or 
light-weight). Then you can use the SVGGraphics2D class to produce an SVG 
file with your image. Anyway, you won't take advantage of SVG in this case as 
your component will be just an image.

You should probably just save your image as a PNG directly.

Thierry.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org