CDC::GetPixel

This method retrieves the RGB color value of the pixel at the point specified by x and y.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

COLORREF GetPixel( int x, int y ) const;

COLORREF GetPixel( POINT point ) const;

See Also

CDC::GetDeviceCaps, CDC::SetPixel, CPoint