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 / GUI / January 2004

Tip: Looking for answers? Try searching our database.

How do I copy an image from the screen?

Thread view: 
DennyOR - 28 Jan 2004 02:05 GMT
Hi,

I know how to copy an image from one area of the screen to another, and I
know how to copy an image from an offscreen Image buffer to the screen, but
I don't know how to copy an image from the screen to an offscreen buffer.
Thanks for any help.

Denny
Andrew Thompson - 28 Jan 2004 02:36 GMT
...
| I know how to copy an image from one area of the screen to another, and I
| know how to copy an image from an offscreen Image buffer to the screen, but
| I don't know how to copy an image from the screen to an offscreen buffer.
| Thanks for any help.

You mean like a screen grabber Denny?

Robot.createScreenCatcher(Rectangle),

You might also search this group recently
for posts by Arnaud, he is working on a
transparent App. that uses the technique
to get a screent shot over which he then
draws the GUI.

HTH

--
Andrew Thompson
* http://www.PhySci.org/codes/ Web & IT help
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
DennyOR - 30 Jan 2004 00:43 GMT
In the program I'm writing all I want to do is temporarily display a box of
information on the screen, and then when I'm done, return the information
that was under the box back to the screen, without having to execute all the
code in my paint() method (which would execute even if I did supply the
coordinates of the box in the repaint()) and without using a new window for
the box. So I'd like to first do a reverse drawImage() (like an  "Image
recordImage()") to capture the portion of the screen image that is under
where the
box will be so I can return that image later. Is this an outlandish idea?
Will
Robot.createScreenCapture() work for me? Or is there a core AWT method to
get this done? Thanks.

Denny

> ...
> | I know how to copy an image from one area of the screen to another, and I
[quoted text clipped - 21 lines]
> * http://www.1point1C.org/ 1.1C - Superluminal!
> * http://www.AThompson.info/andrew/ personal site


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



©2008 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.