3628| 3
|
在RGB565模式下,把颜色值拆分成R、G、B值,公式是什么 |
5金钱
最佳答案以下是ucgui里面的其中一个转换函数,注释是本人添加的
[mw_shl_code=applescript,true]/*********************************************************************
*
* Defines
*
**********************************************************************
*/
#define B_BITS 5
#define G_BITS 6
#define R_BITS 5
#define R_MASK ((1 > (B_BITS + G_BITS)) & R_MASK;
/* 组合成24BPP格式的像素点 ...
| ||
| ||
拿来长岛冰茶换我半晚安睡
|
||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-2-28 03:49
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网