Sous C/Windows, il y a une API pour ça (tout pixel de tout endroit/contrôle/..)
The GetPixel function retrieves the red, green, blue (RGB) color value of the pixel at the specified coordinates.
COLORREF GetPixel(
HDC hdc, // handle of device context
int XPos, // x-coordinate of pixel
int nYPos // y-coordinate of pixel
);
COLORREF peut être assimilé à un long.
Pour VB, voir http://www.ifrance.com/estdevvb/ap [...] ion/71.htm