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 / December 2003

Tip: Looking for answers? Try searching our database.

Accessing the screen pixels fra a Java program

Thread view: 
Kasper K - 08 Dec 2003 00:46 GMT
Hi,

How can i access the screen pixels from within a Java program? I want
to locate small images on the screen drawn by another process
(shockwave player in IE). In order to do that I need access to the
pixels on the screen.

Kasper, Denmark
Tor Iver Wilhelmsen - 08 Dec 2003 19:08 GMT
> How can i access the screen pixels from within a Java program? I want
> to locate small images on the screen drawn by another process
> (shockwave player in IE). In order to do that I need access to the
> pixels on the screen.

Use java.awt.Robot.createScreenCapture() to get a BufferedImage you
can analyze.
Marco Schmidt - 09 Dec 2003 00:03 GMT
Kasper K:

>How can i access the screen pixels from within a Java program? I want
>to locate small images on the screen drawn by another process
>(shockwave player in IE). In order to do that I need access to the
>pixels on the screen.

java.awt.Robot can do this (Java 1.3 or higher). Here's example code
on how to use it:
<http://www.geocities.com/marcoschmidt.geo/java-save-screenshot.html>.

Regards,
Marco
Signature

Please reply in the newsgroup, not by email!
Java programming tips: http://jiu.sourceforge.net/javatips.html
Other Java pages: http://www.geocities.com/marcoschmidt.geo/java.html



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.