imagearc — 用于画椭圆弧。 语法 bool imagearc ( resource $image , int $cx , int $cy , int $w , int $h , int $s , int $e , int $color ) imagearc() 以 cx,cy(图像左上角为 0, 0)为中心在 image 所代表的图像中画一...
imagechar — 写出横向的字符。 语法 bool imagechar ( resource $image , int $font , int $x , int $y , string $c , int $color ) imagechar() 将字符串 c 的第一个字符画在 image 指定的图像中,其左上角位于 x,y(...
imagecharup — 垂直地画一个字符。 语法 bool imagecharup ( resource $image , int $font , int $x , int $y , string $c , int $color ) imagecharup() 将字符 c 垂直地画在 image 指定的图像上,位于 x,y(图像左上角...
imagecolorallocate — 为一幅图像分配颜色。 语法 int imagecolorallocate ( resource $image , int $red , int $green , int $blue ) imagecolorallocate() 返回一个标识符,代表了由给定的 RGB 成分组成的颜色。red,...
imagecolorallocatealpha — 为一幅图像分配颜色和透明度。 语法 int imagecolorallocatealpha ( resource $image , int $red , int $green , int $blue , int $alpha ) imagecolorallocatealpha() 的行为和 imagecolorallocate() 相同,...
imagecolorat — 取得某像素的颜色索引值。 语法 int imagecolorat ( resource $image , int $x , int $y ) 返回 image 所指定的图形中指定位置像素的颜色索引值。 如果 PHP 编译时加上了 GD 库 2.0 或更高的...
imagecolorclosest — 取得与指定的颜色最接近的颜色的索引值。 语法 int imagecolorclosest ( resource $image , int $red , int $green , int $blue ) 返回图像调色板中与指定的 RGB 值最"接近"的颜色。 指定的...
imagecolorclosestalpha — 取得与指定的颜色加透明度最接近的颜色的索引。 语法 int imagecolorclosestalpha ( resource $image , int $red , int $green , int $blue , int $alpha ) 返回图像调色板中与指定的 RGB 值以...
imagecolorclosesthwb — 取得与指定的颜色最接近的色度的黑白色的索引。 语法 int imagecolorclosesthwb ( resource $image , int $red , int $green , int $blue ) 取得与给定颜色最接近的色度的黑白色的索引。...
PHP 获取图像宽度函数:imagesx() imagesx() 函数用于获取图像的宽度,单位为像素,返回值为整型。 语法: int imagesx( resource image ) 参数 image 为如 imagecreatetruecolor()、imagecreatefromjpeg() 等函数...