把颜色取出来的位运算

float r = float((uint32)color&(uint32)0x000000ffU)/128.0f;

float g = float((uint32)color&(uint32)0x0000ff00)/128.0f;

float b = float((uint32)color&(uint32)0x00ff0000U)/128.0f;

 

posted on 2015-07-28 14:12  minggoddess  阅读(367)  评论(0编辑  收藏  举报