VS2010,MFC如何动态显示png图像 [英] VS2010, MFC how to dynamically display png images

查看:404
本文介绍了VS2010,MFC如何动态显示png图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只会MFC加载bmp图像,但不知道如何加载显示png图像?



我尝试过:



我只会MFC加载bmp图像,但不知道如何加载显示png图像?

I will only MFC load bmp image, but do not know how to load the display png image?

What I have tried:

I will only MFC load bmp image, but do not know how to load the display png image?

推荐答案

您可以使用 CImage类 [ ^ ]。



将文件名传递给 Load()函数,并使用 HBITMAP 运算符显示图像(将其传递给函数接受 HBITMAP CBitmap )。
You can use the CImage Class[^].

Pass the file name to the Load() function and use the HBITMAP operator to show the image (pass it to functions accepting a HBITMAP or a CBitmap).


这篇关于VS2010,MFC如何动态显示png图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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