...
|
...
|
@@ -263,7 +263,8 @@ class Image |
|
|
//创建新图像
|
|
|
$img = imagecreatetruecolor($width, $height);
|
|
|
// 调整默认颜色
|
|
|
$color = imagecolorallocate($img, 255, 255, 255);
|
|
|
// $color = imagecolorallocate($img, 255, 255, 255);
|
|
|
$color = imagecolorallocatealpha($img, 0, 0, 0, 127);
|
|
|
imagefill($img, 0, 0, $color);
|
|
|
//裁剪
|
|
|
imagecopyresampled($img, $this->im, 0, 0, $x, $y, $width, $height, $w, $h);
|
...
|
...
|
@@ -459,7 +460,8 @@ class Image |
|
|
imagefill($src, 0, 0, $color);
|
|
|
imagecopy($src, $this->im, 0, 0, $x, $y, $info[0], $info[1]);
|
|
|
imagecopy($src, $water, 0, 0, 0, 0, $info[0], $info[1]);
|
|
|
imagecopymerge($this->im, $src, $x, $y, 0, 0, $info[0], $info[1], $alpha);
|
|
|
// imagecopymerge($this->im, $src, $x, $y, 0, 0, $info[0], $info[1], $alpha);
|
|
|
imagecopy($this->im, $water, $x, $y, 0, 0, $info[0], $info[1]);
|
|
|
//销毁零时图片资源
|
|
|
imagedestroy($src);
|
|
|
} while (!empty($this->gif) && $this->gifNext());
|
...
|
...
|
|