Hello all,
I hope I am not asking a stupid question, but I can't find how to to it. I
have Graphics2D, and I would like to create a BufferedImage from a rectangle
in the Graphics2D. I could not find any method that creates an image or a
buffered image in both graphics and graphics2d methods. Or have I missed
something obvious? If yes, sorry to bother you. But can you tell it to me
anyway 8-)?
Francois
Andrew Thompson - 02 May 2007 17:34 GMT
>...I could not find any method that creates an image
See..
<http://java.sun.com/javase/6/docs/api/java/awt/Toolkit.html#getImage(java.net.URL
)>
..and its lesser reliable String overloaded variant.
Also all the methods based on..
java.awt.Toolkit.createImage()
>...or a
>buffered image
<http://java.sun.com/javase/6/docs/api/java/awt/image/BufferedImage.html#construc
tor_summary
HTH

Signature
Andrew Thompson
http://www.athompson.info/andrew/