C ++:在Windows上使用C ++读取和写入BMP文件的最简单的方法是什么? [英] C++: What's the simplest way to read and write BMP files using C++ on Windows?

查看:211
本文介绍了C ++:在Windows上使用C ++读取和写入BMP文件的最简单的方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想加载一个BMP文件,在内存中对其进行一些操作,并在Windows(Win32 native)上使用C ++输出一个新的BMP文件。我知道 ImageMagick 和它的C ++绑定 Magick ++ ,但我认为这是一个overkill这个项目,因为我目前不感兴趣的其他文件格式或平台。

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文件的最简单的方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆