Rather than copying the bitmap to a byte array, you can use CreateCompatibleDC to create a DC (device context), then SelectObject to give the picture the DC. Then you can access the pixels just like it was a PictureBox, so you can compare the colors simply.




Reply With Quote