将位图的一个像素到指定的颜色。
static void __stdcall SetPixel(
COLORREF* pBits,
int cx,
int cy,
int x,
int y,
COLORREF color
);
参数
Parameter |
说明 |
[in] pBits |
向位图的位值的指针。 |
[in] cx |
位图的宽度。 |
[in] cy |
位图的总高度。 |
[in] x |
像素的x坐标。更改位图(dib)。 |
[in] y |
像素的y坐标。更改位图(dib)。 |
[in] color |
所提供的坐标定位的像素的新颜色。 |
要求
标头: afxdrawmanager.h