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 / July 2007

Tip: Looking for answers? Try searching our database.

Capture minimized windows

Thread view: 
tommygun101 - 07 Jul 2007 00:09 GMT
Hey people

I was wondering, is it possible to capture the image of a window which
is minimised, similar to windows printscreen.

I know it is possible to maximize a window, take printscreen and then
minimize it, but i searched google and couldnt find references to
anyone who is able to take the window image straight out of memory.

I am beginning to think it is not possible at all

If someone knows otherwise, please could you point me in the right
direction.

regards, tom
John W. Kennedy - 07 Jul 2007 00:16 GMT
> Hey people
>
[quoted text clipped - 6 lines]
>
> I am beginning to think it is not possible at all

If you're writing Java programs, you should already know that when a
window isn't visible, it doesn't exist. When it comes back, it has to be
repainted. So it's impossible to capture a minimized window, because the
pixels just aren't there to be captured.
Signature

John W. Kennedy
"Never try to take over the international economy based on a radical
feminist agenda if you're not sure your leader isn't a transvestite."
  -- David Misch:  "She-Spies", "While You Were Out"

Roedy Green - 07 Jul 2007 07:09 GMT
On Fri, 06 Jul 2007 19:16:43 -0400, "John W. Kennedy"
<jwkenne@attglobal.net> wrote, quoted or indirectly quoted someone who
said :

>If you're writing Java programs, you should already know that when a
>window isn't visible, it doesn't exist. When it comes back, it has to be
>repainted. So it's impossible to capture a minimized window, because the
>pixels just aren't there to be captured.

However, you can paint to an offscreen buffer.  See
http://mindprod.com/applets/masker.html
for an example.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com


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.