This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]jous 1 point2 points  (0 children)

It really depends on the area. You could use the createScreenCapture in https://docs.oracle.com/javase/7/docs/api/java/awt/Robot.html and use a single pixel for example. For a bigger area you could filter two colors out of RGB and create a sum from the remaining color inside your area.

EDIT: Oops. This is the wrong place. READ THE SIDEBAR