2010-09-14 120 views
1

所以我基本上有這樣的:GD透明PNG

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

所以redcircle.png文件具有透明性(與抗鋸齒)。但GD只是變成了黑色的所有透明度?有沒有辦法找回原始透明度?

回答