还有关于png背景黑色的问题,可以创建一个画布,把logo跟背景图片都放里面例如
imagecopy($canvas, $bg, 0, 0, 0, 0, 宽, 高);
imagecopy($canvas, $logo, 0,0, 0, 0, 宽, 高);
然后在把画布放在原背景图片之上
imagecopymerge($bg, $canvas, 20, 30, 0, 0, 宽 ,高, 透明度);
imagecopy($canvas, $bg, 0, 0, 0, 0, 宽, 高);
imagecopy($canvas, $logo, 0,0, 0, 0, 宽, 高);
然后在把画布放在原背景图片之上
imagecopymerge($bg, $canvas, 20, 30, 0, 0, 宽 ,高, 透明度);
2016-11-04
Call to undefined function image() ...
public function show(){
header("Content-type:".$this->info['mime']);
$funs = "image{$this->info['type']}";
$funs($this->image);
}
public function show(){
header("Content-type:".$this->info['mime']);
$funs = "image{$this->info['type']}";
$funs($this->image);
}
2016-11-01