C++: What#39;s the simplest way to read and write BMP files using C++ on Windows?(C++:在 Windows 上使用 C++ 读写 BMP 文件的最简单方法是什么?)
问题描述
我想加载一个 BMP 文件,在内存中对其进行一些操作,然后在 Windows(Win32 原生)上使用 C++ 输出一个新的 BMP 文件.我知道 ImageMagick 并且它是 C++ 绑定 Magick++,但我认为这对这个项目来说太过分了,因为我目前对其他文件格式或平台不感兴趣.
I would like to load a BMP file, do some operations on it in memory, and output a new BMP file using C++ on Windows (Win32 native). I am aware of ImageMagick and it's C++ binding Magick++, but I think it's an overkill for this project since I am currently not interested in other file formats or platforms.
就读取和写入 BMP 文件的代码设置而言,最简单的方法是什么?答案可能是就用 Magick++,它是最简单的."
What would be the simplest way in terms of code setup to read and write BMP files? The answer may be "just use Magick++, it's the simplest."
相关问题:最好的图像处理库是什么?
推荐答案
当只为 Windows 开发时,我通常只使用 ATL CImage 类
When developing just for Windows I usually just use the ATL CImage class
这篇关于C++:在 Windows 上使用 C++ 读写 BMP 文件的最简单方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:C++:在 Windows 上使用 C++ 读写 BMP 文件的最简单方法


- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 近似搜索的工作原理 2021-01-01
- 静态初始化顺序失败 2022-01-01
- STL 中有 dereference_iterator 吗? 2022-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- C++ 协变模板 2021-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- Stroustrup 的 Simple_window.h 2022-01-01
- 从python回调到c++的选项 2022-11-16