请问如何读取屏幕上一个象素的颜色?白色是什么代码?

解决方案 »

  1.   

    是什么函数?
    可以帮忙查一下MSDN吗?
    我的光区坏了,装不了.
    谢谢!!!!!!!!
      

  2.   

    COLORREF GetPixel(
      HDC hdc,    // handle to DC
      int nXPos,  // x-coordinate of pixel
      int nYPos   // y-coordinate of pixel
    );白色的值是RGB(255,255,255)
      

  3.   

    COLORREF GetPixel(
      HDC hdc,    // handle to DC
      int nXPos,  // x-coordinate of pixel
      int nYPos   // y-coordinate of pixel
    );RGB白色的值是RGB(255,255,255)
    还有一个HLS值好象是(0,0,0)具体我不记得了!你到MSDN中查吧!
      

  4.   

    if (dc.GetPixel(  x, y )==GRB(255,255,255))