CDC::GetPixel

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

Syntax

COLORREF GetPixel( int x, int y ) const;

COLORREF GetPixel( POINT point ) const;

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CDC Overview, CDC Member Functions, Graphical Drawing Classes, CDC::GetDeviceCaps, CDC::SetPixel, CPoint