matthew1988
Newcomer
- Joined
- Jul 10, 2012
- Messages
- 2
Hello!
I would like to know what is the fastest way to find a pixel on my desktop. I've tried GetPixel API, but it's extremely slow. I've also tried Bitmap.GetPixel and it doesn't seem to be a difference between the two.
I'm trying to search for exactly one pixel on my desktop. I have the coordinate as well as the color. It has to be in a loop if you don't mind.
Here's how I used GetPixel:
If there's anything you need to know, please ask. Thank you for this wonderful forum!
I would like to know what is the fastest way to find a pixel on my desktop. I've tried GetPixel API, but it's extremely slow. I've also tried Bitmap.GetPixel and it doesn't seem to be a difference between the two.
I'm trying to search for exactly one pixel on my desktop. I have the coordinate as well as the color. It has to be in a loop if you don't mind.
Here's how I used GetPixel:
Code:
Do
'Nothing
Loop Until GetPixel(hDC,X,Y) = COLOR
If there's anything you need to know, please ask. Thank you for this wonderful forum!