很好奇在封装函数这块,$info2[0],$info2[1] 怎么来的
public function imageMark($source,$local,$alpha){ $info2=getimagesize($source); $type2=image_type_to_extension($info2[2],false); $fun2="imagecreatefrom{$type2}"; $water=$fun2($source); imagecopymerge($this->image, $water, $local['x'], $local['y'], 0, 0, $info2[0], $info2[1], $alpha); imagedestroy($water); }
原图还有
$this->info = array( 'width'=>$info[0], 'height'=>$info[1], 'type'=>image_type_to_extension($info[2],false), 'mime'=>$info['mime']