查看文件: makeshopimg.php
大小: 1.86 KB
类型: application/octet-stream
<? Header("Content-type: image/PNG"); $src1="/www2/skybni/test007/b1.jpg"; $background="/www2/skybni/test007/member_backgroud.jpg"; //$background="/www2/skybni/test007/bb.png"; $myfont="/www2/skybni/fonts/kaiu.ttf"; $savepath='/www2/skybni/test007/tmpimgs/'; //$im = imagecreatefrompng($background); $im = imagecreatefromjpeg($background); // imagecopymerge($im,$src1, 50, 120, 0, 0, 400, 330, 0); imagecopymerge($im,$src1, 0, 0, 0, 0, 300, 330, 75); /* imagecopymerge( GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct ): bool */ /* $white = ImageColorAllocate($im, 255,255,255); //472 X 700 $point_y=array(105,165,225,285);//high $point_4x=40; $word='南' ;//substr($authnum,$c,1); $white = imagecolorclosest($im, 255, 255, 255); ImageTTFText($im,40,0,40,$point_y[0], $white,$myfont,$word); $word='港' ;//substr($authnum,$c,1); $white = imagecolorclosest($im, 255, 255, 255); ImageTTFText($im,40,0,120,$point_y[0], $white,$myfont,$word); $word='路' ;//substr($authnum,$c,1); $white = imagecolorclosest($im, 255, 255, 255); ImageTTFText($im,40,0,200,$point_y[0], $white,$myfont,$word); $word='一段單號' ;//'南港路' ;//substr($authnum,$c,1); // ImageTTFText($im,40,0,40,$point_y[1], $white,$myfont,$word); $word='網路二城' ;//'南港路' ;//substr($authnum,$c,1); ImageTTFText($im,40,0,40,$point_y[2], $white,$myfont,$word); $word='單' ;//'南港路' ;//substr($authnum,$c,1); ImageTTFText($im,40,0,40,$point_y[3], $white,$myfont,$word); $word='號' ;//'南港路' ;//substr($authnum,$c,1); ImageTTFText($im,40,0,200,$point_y[3], $white,$myfont,$word); // $f=date('Ymdhis',time()).'.png' ; */ //ImagePNG($im, $savepath.$f); ImagePNG($im); ImageDestroy($im); ?>
保存
取消
返回文件列表