RGB24转RGB565

R: High 5 bits

G: High 6 bits

B: High 5 Bits

1 #define C24_TO_C565(rgb24) (((rgb24 & 0xf80000) >> 8) | ((rgb24 & 0x00fc00) >> 5) | ((rgb24 & 0x0000f8) >> 3))

配色参考http://tool.c7sky.com/webcolor/


posted @ 2018-09-12 13:49  草打马上飞  阅读(313)  评论(0)    收藏  举报