展开全部
GDI+支持PNG,用GDI+直接可以打开PNG透明图像:
dim Graphics as long,IMG as long
InitGDIPlus
GdipCreateFromHDC Picture1.hDC, Graphics
GdipLoadImageFromFile StrPtr("c:\1.png"), Img
GdipDrawImage Graphics, Img, 0, 0
Picture1.Refresh
GdipDeleteGraphics Graphics
TerminateGDIPlus
'-----------------------------------------------------------------------
自己下载GDI+的声明模块,网上很多
dim Graphics as long,IMG as long
InitGDIPlus
GdipCreateFromHDC Picture1.hDC, Graphics
GdipLoadImageFromFile StrPtr("c:\1.png"), Img
GdipDrawImage Graphics, Img, 0, 0
Picture1.Refresh
GdipDeleteGraphics Graphics
TerminateGDIPlus
'-----------------------------------------------------------------------
自己下载GDI+的声明模块,网上很多
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询