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