Code below searches a certain bitmap (all supported formats of GDI+) picture in another picture or on screen (after saved as bitmap)
not depending on 3rd party dll's
Pentium 4 of 3 GHz takes
* about 4.5 seconds on a 1280*1024 desktop to find a 260*260 bitmap. Partial match 0.5 seconds
* about 1 seconds on a 1280*1024 desktop to find a 20*17 bitmap. Partial match 0.5 seconds
Some references I used to come up with this solution
* code to get a smaller bitmap: http://w