Web Query wrote:

Hi All,

I imagine there is a very simple solution for what I am trying to do here. I would like to get a BufferedImage of what the JSVGCanvas is currently displaying. I have looked into using an ImageTranscoder, but I am not clear on exactly how to link the transcoder to the JSVGCanvas in order to get a BufferedImage. Ideally, I am hoping there is some function call buried in the JSVGCanvas parent classes that will just return the currently displayed BufferedImage.

What is the best way to go about this?

Thanks,
Chris| |||

I think getGraphicsNode() (in JGVTComponent) and casting it to a Graphics (which can be transformed in an image real easy. Check the javadoc) should help you out. Note however that the loading process in SVGCanvas is asynchronous. It might not be what you want.
Till


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



Reply via email to