...
|
...
|
@@ -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);
|
...
|
...
|
|