CDC::SetPixel

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

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 SetPixel( int x, int y, COLORREF crColor );

COLORREF SetPixel( POINT point, COLORREF crColor );

See Also

CDC::GetDeviceCaps, CDC::GetPixel