十六进制转换RGB显示颜

来源:互联网 发布:耳机声道测试软件 编辑:程序博客网 时间:2024/05/16 02:06
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]


0 0