imagefilledrectangle()
imagefilledrectangle() 函數畫一矩形并填充。
語法:
bool imagefilledrectangle( resource image, int x1, int y1, int x2, int y2, int color )
x1,y1為左上角左邊,x2,y2為右下角坐標。
ImageTTFText
寫 TTF 文字到圖中。
語法: array ImageTTFText(int im, int size, int angle, int x, int y, int col, string fontfile, string text);
返回值: 數組
imagecreatetruecolor
(PHP 4 >= 4.0.6, PHP 5)
imagecreatetruecolor — 新建一個真彩色圖像
說明
resource imagecreatetruecolor ( int $width , int $height )
imagecreatetruecolor() 返回一個圖像標識符,代表了一幅大小為 x_size 和 y_size 的黑色圖像。
imagecolorallocate — 為一幅圖像分配顏色
說明
int imagecolorallocate ( resource $image , int $red , int $green , int $blue )
imagecolorallocate() 返回一個標識符,代表了由給定的 RGB 成分組成的顏色。red,green 和 blue 分別是所需要的顏色的紅,綠,藍成分。這些參數是 0 到 255 的整數或者十六進制的 0x00 到 0xFF。imagecolorallocate() 必須被調用以創建每一種用在 image 所代表的圖像中的顏色。
文章列表