摘要:
imagecopy($bg, $rotate, $dst_x, $dst_y, 0, 0, imagesx($rotate), imagesy($rotate)); imagealphablending($bg, FALSE);//取消默认的混色模式 imagesavealpha($bg, TRUE 阅读全文
摘要:
使用GD库的imagerotate方法或者imagick的rotateimage方法对图片旋转后,图片未覆盖区域背景颜色默认为黑色(图1),设置为透明色的解决方法如下: GD: resource imagerotate ( resource $image , float $angle , int $ 阅读全文