close
標圖的座標多重點實現
先經由小弟團隊所攥寫的出的表單這是一個圖經由輸入座標並輸入文字並可改字體顏色大小可以在圖中標上字以下是我的程式----------------------------------------------------------------------------------$text=$_POST["text"];$textx=$_POST["textx"];$texty=$_POST["texty"];$size=$_POST["size"];...顯示更多先經由小弟團隊所攥寫的出的表單這是一個圖經由輸入座標並輸入文字並可改字體顏色大小可以在圖中標上字以下是我的程式----------------------------------------------------------------------------------$text=$_POST["text"];$textx=$_POST["textx"];$texty=$_POST["texty"];$size=$_POST["size"];$font=$_POST["font"];$color=$_POST["color"];$image=imagecreatefromjpeg("001.jpg");switch($color){case'r':$black=imagecolorallocate($image,255,0,0);break;case'g':$black=imagecolorallocate($image,0,255,0);break;case'b1':$black=imagecolorallocate($image,0,0,255);break;case'y':$black=imagecolorallocate($image,255,255,0);break;case'b2':$black=imagecolorallocate($image,0,255,255);break;case'p':$black=imagecolorallocate($image,255,0,255);break;case'b3':$black=imagecolorallocate($image,0,0,0);break;case'w':$black=imagecolorallocate($image,255,255,255);break;default:$black=imagecolorallocate($image,0,0,0);}imagettftext($image,$size,0,$textx,$texty,$black,$font,$text);imagejpeg($image,"001-1.jpg");?>