Images

  • Thread starter Francois Lionet
  • Start date
F

Francois Lionet

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 :cool:?

Francois
 
A

Andrew Thompson

Francois said:
...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()

HTH

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

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200705/1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top