GetPixel function gdi32

COLORREF GetPixel(
  1. HDC hdc,
  2. int x,
  3. int y
)

Retrieves the red, green, blue (RGB) color value of the pixel at the specified coordinates.

To learn more, see learn.microsoft.com/windows/win32/api/wingdi/nf-wingdi-getpixel.

Implementation

@pragma('vm:prefer-inline')
COLORREF GetPixel(HDC hdc, int x, int y) => COLORREF(_GetPixel(hdc, x, y));