a) Images don't have a Device Context
b) Even if you put the Image into a Picturebox instead, GetPixel gets affected by VB's clipping (exactly as does VB's Point command, which is just a wrapper for GetPixel) - pixels that are hidden from display return CLR_INVALID
One solution to this is to pop the picture into a screen-compatible memory DC with no clip region, and call GetPixel against that. I produced a worked example of this in thread222-263560
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.