开发者

Is it possible to make a grayscale BMP file?

I am trying to make a program that outputs a 8-bit grayscale image to bmp file. I have found out that 8-bit BMP files are indexed. Is it pos开发者_高级运维sible to omit the color table and just put values instead of indexes in the color table? Or BMP format does not allow this?


You still need the LUT but it's very simple to create it. It's just 256 entries where the red, green and blue components are all equal to the grey scale intensity.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜