imagefilledrectangle

(PHP 4, PHP 5, PHP 7) Draw a filled rectangle bool imagefilledrectangle ( resource $image, int $x1, int $y1, int $x2, int $y2, int $color ) Creates a rectangle filled with color in the given image starting at point 1 and ending at point 2. 0, 0 is the top left corner of the image. Parameters: image An image resource, returned by one of the image creation functions, such as

imagefilledpolygon

(PHP 4, PHP 5, PHP 7) Draw a filled polygon bool imagefilledpolygon ( resource $image, array $points, int $num_points, int $color ) imagefilledpolygon() creates a filled polygon in the given image. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). points An array containi

imagefilledellipse

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Draw a filled ellipse bool imagefilledellipse ( resource $image, int $cx, int $cy, int $width, int $height, int $color ) Draws an ellipse centered at the specified coordinate on the given image. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). cx

imagefilledarc

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Draw a partial arc and fill it bool imagefilledarc ( resource $image, int $cx, int $cy, int $width, int $height, int $start, int $end, int $color, int $style ) Draws a partial arc centered at the specified coordinate in the given image. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreat

imagefill

(PHP 4, PHP 5, PHP 7) Flood fill bool imagefill ( resource $image, int $x, int $y, int $color ) Performs a flood fill starting at the given coordinate (top left is 0, 0) with the given color in the image. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). x x-coordinate of

imageellipse

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Draw an ellipse bool imageellipse ( resource $image, int $cx, int $cy, int $width, int $height, int $color ) Draws an ellipse centered at the specified coordinates. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). cx x-coordinate of the

imagedestroy

(PHP 4, PHP 5, PHP 7) Destroy an image bool imagedestroy ( resource $image ) imagedestroy() frees any memory associated with image image. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). Returns: Returns TRUE on success or FALSE on failure.

imagedashedline

(PHP 4, PHP 5, PHP 7) Draw a dashed line bool imagedashedline ( resource $image, int $x1, int $y1, int $x2, int $y2, int $color ) This function is deprecated. Use combination of imagesetstyle() and imageline() instead. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). x1

imagecropauto

(PHP 5 >= 5.5.0, PHP 7) Crop an image automatically using one of the available modes resource imagecropauto ( resource $image [, int $mode = -1 [, float $threshold = .5 [, int $color = -1 ]]] ) Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). mode One of IMG_CROP_* c

imagecrop

(PHP 5 >= 5.5.0, PHP 7) Crop an image using the given coordinates and size, x, y, width and height resource imagecrop ( resource $image, array $rect ) Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). rect Array with keys "x", "y", "width" and "height".