Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Images

Thread view: 
Francois Lionet - 02 May 2007 16:30 GMT
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/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.