xushx_bigbear的专栏 QQ/微信:412776943

永远保持好奇 && dream @杭州

BMP RGB565

http://atlc.sourceforge.net/bmp.html#_toc381201084 

 
  • when this field is equal to 16.

the bitmap has a maximum of 2^16 colors. if the compression field of the bitmap file is set to bi_rgb, the palette field does not contain any entries. each word in the bitmap array represents a single pixel. the relative intensities of red, green, and blue are represented with 5 bits for each color component. the value for blue is in the least significant 5 bits, followed by 5 bits each for green and red, respectively. the most significant bit is not used.

if the compression field of the bitmap file is set to bi_bitfields, the palette field contains three dword color masks that specify the red, green, and blue components, respectively, of each pixel. each word in the bitmap array represents a single pixel.

windows nt specific: when the compression field is set to bi_bitfields, bits set in each dword mask must be contiguous and should not overlap the bits of another mask. all the bits in the pixel do not have to be used.

windows 95 specific: when the compression field is set to bi_bitfields, windows 95 supports only the following 16bpp color masks: a 5-5-5 16-bit image, where the blue mask is 0x001f, the green mask is 0x03e0, and the red mask is 0x7c00; and a 5-6-5 16-bit image, where the blue mask is 0x001f, the green mask is 0x07e0, and the red mask is 0xf800.

阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。文章转载只能用于非商业性质,且不能带有虚拟货币、积分等附加条件;转载必须注明出处。 https://blog.csdn.net/xushx_bigbear/article/details/17091429
个人分类: C 问题
想对作者说点什么? 我来说一句

rgb565BMP24位 图片互转

2015年09月30日 1.05MB 下载

RGB565直接转BMP

2012年02月03日 163KB 下载

没有更多推荐了,返回首页

不良信息举报

BMP RGB565

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭