VS2010,MFC如何动态显示png图像 [英] VS2010, MFC how to dynamically display png images
本文介绍了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 theLoad()
function and use theHBITMAP
operator to show the image (pass it to functions accepting aHBITMAP
or aCBitmap
).
这篇关于VS2010,MFC如何动态显示png图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文