Windows上的pngwriter lib [英] pngwriter lib on windows
问题描述
大家好
我需要从代码生成按钮图像(.png)并保存到磁盘.
我尝试使用lib pngwriter 0.5.4
完成在Windows XP上为Microsoft Visual C ++ .NET设置PNGWriter 指令,除了 pngwriter.lib 建筑,它会出错.
无法将参数3从``unsigned long *''转换为``png_uing_32''
找不到png_set_gray_1_2_4_to_8标识符
.....
和许多其他错误
.png gererate是否有更好的lib?
问题如何解决?
谢谢.
Hi All
I need generate button image (.png) from code and save to disk.
I try use lib pngwriter 0.5.4
Done all Setting Up PNGWriter for Microsoft Visual C++ .NET on Windows XP instructions except pngwriter.lib building, it takes error.
Can not convert parameter 3 from ''unsigned long *'' to ''png_uing_32''
png_set_gray_1_2_4_to_8 identifier not found
.....
and many other errors
Are there better lib for .png gererate?
How correct problem?
Thanks.
推荐答案
您可以使用GDI+
^ ]写入png
图片文件.
:)
You may use theGDI+
Image::Save method[^] to write apng
image file.
:)
正如CPallini所写,您可以使用 GDI + 中的Image
类;如果您使用的是 ATL/MFC ,则可能更喜欢使用 CImage类(ATL/MFC) [
As CPallini already wrote, you may use the Image
class from GDI+; if you are using ATL/MFC may you prefer using the CImage Class (ATL/MFC)[^] which is a wrapper for the GDI+ class.
GDI + 是完美的解决方案,谢谢:thumbsup :: thumbsup :: thumbsup:
GDI+ is perfect solution, thanks :thumbsup::thumbsup::thumbsup:
这篇关于Windows上的pngwriter lib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!