在没有桌面支持的情况下保存图像 [英] Save Image Without Desktop Support
本文介绍了在没有桌面支持的情况下保存图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我是vc ++的初学者.我需要将图像保存为png格式.我有一个位图句柄.我需要将其转换为* .png图像并保存.我没有桌面支持. IE.该应用程序在本地系统帐户(SYSTEM)下运行.
我怎样才能做到这一点?我尝试使用DevIL,但是在本地系统帐户下运行时,映像创建失败.
在此先感谢
Hi
I am a beginner in vc++. I need to save an image in png format. I have a bitmap handle. I need to convert it into a *.png image and save. I dont have the desktop support. ie. the application run under Local System account (SYSTEM).
How can I achieve this? I tried with DevIL, but the image creation failed when run under Local System account.
Thanks in advance
推荐答案
我不明白为什么您需要台式机用户. GDI +可以做到这一点,您不需要任何非MFC库.
I don''t see why you''d need a desktop user. GDI+ does this, you don''t need any non MFC libraries.
这篇关于在没有桌面支持的情况下保存图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文