请问如何得到bitmap某一点像素的RGB值?

chineser 2002-11-26 04:06:00
如题,谢谢大虾^_^
...全文
138 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
free_card 2002-11-27
  • 打赏
  • 举报
回复
VC知识库在线杂志第十四期图形图像多媒体栏有源码及说明可参考。网址:www.vckbase.com
Rigel 2002-11-27
  • 打赏
  • 举报
回复
这么多星星答,我闪。
HuWenjin 2002-11-27
  • 打赏
  • 举报
回复
难怪上了星星,总是跑第一
romanticist 2002-11-27
  • 打赏
  • 举报
回复
同意楼上得
用户 昵称 2002-11-26
  • 打赏
  • 举报
回复
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
);
用户 昵称 2002-11-26
  • 打赏
  • 举报
回复
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
);
qing_li73 2002-11-26
  • 打赏
  • 举报
回复
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
);

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧