2010-09-14 223 views
1

所以我基本上有这样的:GD透明PNG

$img = imagecreatefrompng('assets/other/redcircle.png'); 
imagepng($img); 
imagedestroy($img); 

所以redcircle.png文件具有透明性(与抗锯齿)。但GD只是变成了黑色的所有透明度?有没有办法找回原始透明度?

回答