PHP头条
热点:

通过gd库为图片添加透明水印


请查看源文件
注:需GD 2.0以上才能有透明效果
<?php(做为现在的主流开发语言)
header ("Content-type: image/png");
$logoImage = ImageCreateFromPNG(test.png);
$photoImage = ImageCreateFromJpeg(back.jpg);
ImageAlphaBlending($photoImage, true);
$logoW = ImageSX($logoImage);
$logoH = ImageSY($logoImage);
ImageCopy($photoImage, $logoImage, 0, 0, 0, 0, $logoW, $logoH);
ImageJPEG($photoImage); // output to browser
ImageDestroy($photoImage);
ImageDestroy($logoImage);
?>

www.phpzy.comtrue/phprm/32167.htmlTechArticle通过gd库为图片添加透明水印 请查看源文件 注:需GD 2.0以上才能有透明效果 ?php (做为现在的主流开发语言) header ("Content-type: image/png"); logoImage = ImageCreateFromPNG(test.png); photoImage = ImageCr...

相关文章

    暂无相关文章

PHP之友评论

今天推荐