還有關于png背景黑色的問題,可以創(chuàng)建一個畫布,把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