在MFC中将位图图像(> 1位)转换为单色位图图像(1位) [英] Convert the bitmap image (>1 bit) to monochrome bitmap image (1 bit) in MFC
问题描述
我正在创建一个MFC项目(C ++语言)来将位图保存到设备的ROM中。
将从PC加载位图文件和路径名称将被记录。我希望应用程序检测加载的位图的位深度(如果等于1位,没有任何变化并执行该过程;
else 在执行之前将位深度转换为1位过程)。
我有什么方法可以达到上述目的吗?
感谢帮助!谢谢!!
你好,
看看这个课程:
https://www.codeproject.com/Articles/1300/CxImage
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
这篇关于在MFC中将位图图像(> 1位)转换为单色位图图像(1位)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!