Partager via


CDrawingManager::SetPixel

Changes a single pixel in a bitmap to the specified color.

static void __stdcall SetPixel(
   COLORREF* pBits,
   int cx,
   int cy,
   int x,
   int y,
   COLORREF color
);

Parameters

Parameter

Description

[in] pBits

A pointer to the bit values of the bitmap.

[in] cx

The total width of the bitmap.

[in] cy

The total height of the bitmap.

[in] x

The x-coordinate of the pixel in the bitmap to change.

[in] y

The y-coordinate of the pixel in the bitmap to change.

[in] color

The new color for the pixel identified by the supplied coordinates.

Requirements

Header: afxdrawmanager.h

See Also

Reference

CDrawingManager Class

Hierarchy Chart