如何从.png文件中获取原始数据? [英] How do I get the raw data from the .png file?

查看:585
本文介绍了如何从.png文件中获取原始数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要显示灰色的3D图片。如何从灰色图像中获取原始数据,如a.png和b.png?非常感谢!

I want to display a gray 3D picture. How can i get the raw data from the gray image like a.png and b.png? thank you very much!

推荐答案

您可以将png加载到内存直流中,直接访问和操作该位。一些示例代码,你应该找到很棒的文章 CxImage
You can load the png into a memory dc and access and manipulate the bit directly. Some sample code you should find the great article CxImage.


这篇关于如何从.png文件中获取原始数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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