GetPixel(dc,x,y)后,如何再分离出red\green\blue的各个值???
如题,在线求助! 问题点数:20、回复次数:2Top
1 楼checkyvc6(已所不欲,勿施于人)回复于 2003-12-01 10:59:26 得分 15
COLORREF cr=GetPixel(dc,x,y);
用api: GetRValue(),GetGValue,GetBValue分别取得r,g,b的值
BYTE r,g,b;
r=GetRValue(cr)
g=GetGValue(cr)
b=GetBValue(cr)
即可,别忘了给分啊,^_^Top
2 楼bluebohe(薄荷)回复于 2003-12-01 11:00:07 得分 5
To extract the individual values for the red, green, and blue components of a COLORREF color value, use the GetRValue, GetGValue, and GetBValue macros, respectively.
GetRValue, GetGValue, and GetBValue
Top
相关问题
- 请教获取像素点颜色值GetPixel(hdc,x,y)?
- 获取像素点颜色值GetPixel(hdc,x,y)?
- beep,windows.beep(x,y)
- X=1,2,3,4,5,6,7,8,9,10 Y=1,2,5,10,20,50,100,200,500,1000 求y=f(x)?
- Dim x, y, z As Integer;Print x, y, z??????
- #define f(x,y) (((x)+(y-1))& ~((y)-1))
- 怎样准确获取自画线段上像素点颜色值GetPixel(hdc,x,y)?
- 对把接口从实现中分离出来的疑惑???
- 怎样将邮件附件分离出来?
- 在SQL中分离出数据库中的表




