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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]