BMP RGB565

原创 2013年12月03日 10:10:37

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.

版权声明:本文为博主原创文章,未经博主允许不得转载。文章转载只能用于非商业性质,且不能带有虚拟货币、积分等附加条件;转载必须注明出处。

相关文章推荐

rgb565_to_bmp

  • 2013年03月10日 01:04
  • 70KB
  • 下载

Android中的Bmp图形格式(ALPHA_8,ARGB_4444,ARGB_8888,RGB_565)

android.graphics.Bitmap.Config是一个枚举类型,里面定义了位图的四种格式.起初有点奇怪,网上查了一下,大概指定了类型名字怪怪的缘由.     从名字中可以看出:     A...

bmp_to_rgb565

  • 2011年05月02日 15:58
  • 10KB
  • 下载

24bbp的bmp转RGB565

#include #include //#define ALIGNMENT_FIX typedef struct _bitmap_file_header bitmap_file_...

android上用C语言读取fb0实现截屏,并保存为rgb565的bmp

工程源码:http://download.csdn.net/detail/victoryckl/4074654 一个增强版本源码:通过对fb0的操作,实现截屏,和送图片到fb0,支持rgb565 ...

24位深的bmp图片转换为16位深RGB565格式的bmp图片源码

/** 24位深的bmp图片转换为16位深RGB565格式的bmp图片 **/ #include #include #include using namespace std;typede...

rgb565转VGA详解

  • 2017年10月19日 19:19
  • 217KB
  • 下载

RGB565常用颜色表

  • 2017年11月01日 10:37
  • 123KB
  • 下载

YUV422转RGB565源码及详解

只需调用compress_yuyv_to_rgb()函数即可实现图片格式由yuv422到rgb565的转换,其中,第一参数为LCD映射到用户空间的buffer,第二个参数为摄像头采集到一帧的图片数数据...
  • mtbiao
  • mtbiao
  • 2013年04月10日 17:43
  • 1817
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:BMP RGB565
举报原因:
原因补充:

(最多只允许输入30个字)