当前位置:网站首页>. File header parsing of BMP pictures

. File header parsing of BMP pictures

2022-06-21 22:36:00 Jida qinshaoyou

891e7361581e4ef91ff011b38378bedc.pngBMP The file is fully parsed

A plane image , The result is a colorful two-dimensional matrix , The combination of three primary colors constitutes almost all colors visible to the naked eye , To display the color matrix , Use a high density of RGB A screen made up of color pixels , So the processor needs to know the color value of each pixel , That is to say, what constitutes color RGB Tricolor brightness . But at the beginning, there was no color display , A black-and-white display made only of tubes , It depends on the intensity of electrons emitted by the electron tube to define the black-and-white brightness information .

Color space

063e30cce6e41070b5aa4c2a7320a324.png
RGB Color space

6494d63eca865c4d7f9d969d038773c4.png
RGB Mixed color

Because processors made of semiconductors can only handle binary , So the description of the pixels that make up the image is ultimately in binary form , Commonly used RGB888 Format , That is, the three primary colors that make up the color have 8 Bit resolution , namely 256 Level depth . But embedded platforms are commonly used RGB565 To reduce the color bit depth to reduce the memory occupation and speed up the image display .

Color depth

原网站

版权声明
本文为[Jida qinshaoyou]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206212039544546.html