^_^

CDC::GetPixel
MFC Library Reference 

CDC::GetPixel

Retrieves the RGB color value of the pixel at the point specified by x and y.

COLORREF (
   int x,
   int y 
) const;
COLORREF (
   POINT point 
) const;

Parameters

x
Specifies the logical x-coordinate of the point to be examined.
y
Specifies the logical y-coordinate of the point to be examined.
point
Specifies the logical x- and y-coordinates of the point to be examined.

Return Value

For either version of the function, an RGB color value for the color of the given point. It is –1 if the coordinates do not specify a point in the clipping region.

Remarks

The point must be in the clipping region. If the point is not in the clipping region, the function has no effect and returns –1.

Not all devices support the GetPixel function. For more information, see the RC_BITBLT raster capability under the GetDeviceCaps member function.

阅读更多
个人分类: 学习心得
想对作者说点什么? 我来说一句

GetPixel获取屏幕上的像素值.txt

2015年06月05日 242B 下载

没有更多推荐了,返回首页

不良信息举报

CDC::GetPixel

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭