如题,谢谢大虾^_^

解决方案 »

  1.   

    GetPixel
    The GetPixel function retrieves the red, green, blue (RGB) color value of the pixel at the specified coordinates. COLORREF GetPixel(
      HDC hdc,   // handle to device context
      int XPos,  // x-coordinate of pixel
      int nYPos  // y-coordinate of pixel
    );
     
      

  2.   

    GetRValue
    The GetRValue macro retrieves an intensity value for the red component of a red, green, blue (RGB) value. BYTE GetRValue(
      DWORD rgb  // RGB value
    );
      

  3.   

    GetGValue
    The GetGValue macro retrieves an intensity value for the green component of a red, green, blue (RGB) value. BYTE GetGValue(
      DWORD rgb     // RGB value
    );
    GetBValue
    The GetBValue macro retrieves an intensity value for the blue component of a red, green, blue (RGB) value. BYTE GetBValue(
      DWORD rgb     // RGB value
    );
      

  4.   

    VC知识库在线杂志第十四期图形图像多媒体栏有源码及说明可参考。网址:www.vckbase.com