我想知道填充像素的代码是怎么写的?是pDC->FloodFill()吗?
热心网友
你的意思是给象素着色? 可以使用COLORREF SetPixel( HDC hdc, // handle to DC int X, // x-coordinate of pixel int Y, // y-coordinate of pixel COLORREF crColor // pixel color);Parametershdc [in] Handle to the device context。 X [in] Specifies the x-coordinate, in logical units, of the point to be set。 Y [in] Specifies the y-coordinate, in logical units, of the point to be set。 crColor [in] Specifies the color to be used to paint the point。 To create a COLORREF color value, use the RGB macro。 。
热心网友
是给点着色。。hdc。。就是设备描述表的指针。。跟画图之类相关的都需要这个东西。。intX,//x-coordinateofpixelintY,//y-coordinateofpixel就是点的坐标罗。。 的格式。。就是RGB(0,0,0)之类的结构体。。。