Finding colors/images on screen.

Okay, say I want to find a specific image inside my java program window (using, say, a bitmap turned into a string)- or even just finding a specific color- how would I go about doing this? I would like to be able to locate said image and find out it's x,y location inside my program window. I've google searched and looked around, but to no avail. Help or code examples would be appreciated :)

Thanks.

[416 byte] By [Repentlessa] at [2007-11-27 3:51:28]
# 1

There may be a way to do it that way but I am not aware of it.

Here is how I would approach this problem.

I almost think of MVC architecture when working with images on a screen, where the Image itself is simply a view and the model of my image that contains specific data about screen location would be, say a Rectangle or some other Shape.

Using the Rectangle you can find the corners of the image, the center of the image, a specific point contained within the Image, and even where the Image intersects with another Image.

maple_shafta at 2007-7-12 8:55:27 > top of Java-index,Java Essentials,Java Programming...