查看单个帖子
旧 2009-04-17, 09:48 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】如何由colorindex获得rgb值?

如何由colorindex获得rgb值?
如何由colorindex获得rgb值?
由于需要由colorindex来获得rgb值,目前的思路是将其index赋给一个accmcolor对象,然后根据该类的一个color函数的返回值获得rgb值,但是看到该函数的解释,把我看昏了,不知道如何处理了。
this function returns color value and color method. low byte is blue; the second byte is green; and the third byte is red. high byte is color method.
请教高手,来帮我分离出rgb值。。。
有相应的属性,直接取就完了
accmcolor::red
accmcolor::blue
accmcolor::green
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)