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