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