爱问知识人 爱问教育 医院库

关于画图的问题

首页

关于画图的问题

我想知道填充像素的代码是怎么写的?
是pDC->FloodFill()吗?

提交回答
好评回答
  • 2005-09-15 21:20:38
      你的意思是给象素着色? 
    可以使用
    COLORREF SetPixel(
      HDC hdc,           // handle to DC
      int X,             // x-coordinate of pixel
      int Y,             // y-coordinate of pixel
      COLORREF crColor   // pixel color
    );
    Parameters
    hdc 
    [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。
       。

    c***

    2005-09-15 21:20:38

其他答案

    2005-09-16 18:52:53
  • 是给点着色。。hdc。。就是设备描述表的指针。。跟画图之类相关的都需要这个东西。。intX,//x-coordinateofpixelintY,//y-coordinateofpixel就是点的坐标罗。。 的格式。。就是RGB(0,0,0)之类的结构体。。。

    m***

    2005-09-16 18:52:53

类似问题

换一换
  • VC++ 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):