在MFC中将位图图像(> 1位)转换为单色位图图像(1位) [英] Convert the bitmap image (>1 bit) to monochrome bitmap image (1 bit) in MFC

查看:280
本文介绍了在MFC中将位图图像(> 1位)转换为单色位图图像(1位)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个MFC项目(C ++语言)来将位图保存到设备的ROM中。


将从PC加载位图文件和路径名称将被记录。我希望应用程序检测加载的位图的位深度(如果等于1位,没有任何变化并执行该过程;
else 在执行之前将位深度转换为1位过程)。


我有什么方法可以达到上述目的吗?


感谢帮助!谢谢!!




解决方案

你好,


看看这个课程:
https://www.codeproject.com/Articles/1300/CxImage


此致,Guido


Hi, I'm creating a MFC project (C++ language) to save the bitmap into a ROM of a device.

The bitmap file will be loaded from the PC and path name will be recorded. I would like the application to detect the bit depth of the bitmap loaded (if equal to 1 bit, nothing change and perform the process; else convert the bit depth to 1 bit before perform the process).

Is there any way I can do to achieve the above purpose?

Appreciate the help!Thanks!!


解决方案

Hello,

have a look at this class: https://www.codeproject.com/Articles/1300/CxImage

Regards, Guido


这篇关于在MFC中将位图图像(> 1位)转换为单色位图图像(1位)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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