原始图像数据到BMP [英] Raw image data to BMP

查看:119
本文介绍了原始图像数据到BMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是VC ++中的新手.我想知道如何将原始图像数据存储为BMP文件格式.以及如何在监视器中显示?请问有任何示例代码或附件吗?


gopal

Hi to all,

im new in VC++. I want to know how to store the Raw image data to BMP File format. and how to display in the Monitor? Is any Sample code or attachment plz fwd me.


gopal

推荐答案

最简单的方法可能是构建DIBSECTION,它为您提供了一个存储数据的指针,并将其推入其中,因此系统将生成BITMAP标头等.然后,您使用CDC和GDI在监视器上显示图像.网络上有大量信息. Feng Yuan撰写的《 Windows Graphics Programming》是一个很好的资源,但是,您只需要一本Petzold C ++书就可以了.
The easiest way is probably to build a DIBSECTION, which gives you a pointer to store the data, and push it into there, so the system will generate the BITMAP header for you, etc. Then you use a CDC and GDI to show the image on the monitor. There''s tons of info on the web. Windows Graphics Programming by Feng Yuan is a great resource, but for this, just the Petzold C++ book is all you would need.


这篇关于原始图像数据到BMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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