CDC::SetPixel

This member function sets the pixel at the point specified to the closest approximation of the color specified by crColor.

Syntax

COLORREF SetPixel( int x, int y, COLORREF crColor );

COLORREF SetPixel( POINT point, COLORREF crColor );

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::GetPixel