是否有一种方便的方式将8位值写入BMP,然后在C++中修改调色板?
我正在尝试将8位UINT写入BMP文件,并将自己的自定义调色板添加到BMP标题中。我想通过标题中的可选彩色表应用调色板,而不要将灰度值更改为RGB三元组。
我发现这个答案使用C#以这种方式编辑BMP,但是有C ++的方式吗?甚至还有其他容易添加到项目的东西?
I am trying to write 8-bit uints to a BMP file and add my own custom colour palette into the BMP header. I want to apply the colour palette through the optional colour table in the header and not change the greyscale values to RGB triples.
I found this answer that uses C# to edit BMPs in this way but is there a C++ way? Or even something else that would be easy to add to the project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论