A
Arun Laksh
Hi,
I have an object of class
java.awt.Graphics
or
java.awt.Component
I need to convert the drawing in this object to an object of type "BufferedImage".
Any suggestions on how this can be done?
Below is a more detailed description of the context of the problem.
Thanks.
-Arun.
I've been using this JGraph library to draw graphs.
Ultimately I would like my drawing to be a BufferedImage object.
The JGraph library uses a JGraph object to make all the drawings.
I can do getGraphics() on that to obtain an object of Class "Graphics"
(java.awt.Graphics) from the JGraph object.
Now, I'm lookin to this to a BufferedImage object.
I have an object of class
java.awt.Graphics
or
java.awt.Component
I need to convert the drawing in this object to an object of type "BufferedImage".
Any suggestions on how this can be done?
Below is a more detailed description of the context of the problem.
Thanks.
-Arun.
I've been using this JGraph library to draw graphs.
Ultimately I would like my drawing to be a BufferedImage object.
The JGraph library uses a JGraph object to make all the drawings.
I can do getGraphics() on that to obtain an object of Class "Graphics"
(java.awt.Graphics) from the JGraph object.
Now, I'm lookin to this to a BufferedImage object.