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 文件的最简单方法


基础教程推荐
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 我有静态或动态 boost 库吗? 2021-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 这个宏可以转换成函数吗? 2022-01-01
- 常量变量在标题中不起作用 2021-01-01