*
*
Attribute | *Meaning | *
GD Version | *string value describing the installed * libgd version. | *
FreeType Support | *boolean value. TRUE * if FreeType Support is installed. | *
FreeType Linkage | *string value describing the way in which * FreeType was linked. Expected values are: 'with freetype', * 'with TTF library', and 'with unknown library'. This element will * only be defined if FreeType Support evaluated to * TRUE. | *
T1Lib Support | *boolean value. TRUE * if T1Lib support is included. | *
GIF Read Support | *boolean value. TRUE * if support for reading GIF * images is included. | *
GIF Create Support | *boolean value. TRUE * if support for creating GIF * images is included. | *
JPEG Support | *boolean value. TRUE * if JPEG support is included. | *
PNG Support | *boolean value. TRUE * if PNG support is included. | *
WBMP Support | *boolean value. TRUE * if WBMP support is included. | *
XBM Support | *boolean value. TRUE * if XBM support is included. | *
WebP Support | *boolean value. TRUE * if WebP support is included. | *
* Previous to PHP 5.3.0, the JPEG Support attribute was named * JPG Support. */ function gd_info () {} /** * Draws an arc * @link https://php.net/manual/en/function.imagearc.php * @param resource $image * @param int $cx
* x-coordinate of the center. *
* @param int $cy* y-coordinate of the center. *
* @param int $width* The arc width. *
* @param int $height* The arc height. *
* @param int $start* The arc start angle, in degrees. *
* @param int $end* The arc end angle, in degrees. * 0° is located at the three-o'clock position, and the arc is drawn * clockwise. *
* @param int $color* A color identifier created with * imagecolorallocate. *
* @return bool TRUE on success or FALSE on failure. */ function imagearc ($image, $cx, $cy, $width, $height, $start, $end, $color) {} /** * Draw an ellipse * @link https://php.net/manual/en/function.imageellipse.php * @param resource $image * @param int $cx* x-coordinate of the center. *
* @param int $cy* y-coordinate of the center. *
* @param int $width* The ellipse width. *
* @param int $height* The ellipse height. *
* @param int $color* The color of the ellipse. A color identifier created with * imagecolorallocate. *
* @return bool TRUE on success or FALSE on failure. */ function imageellipse ($image, $cx, $cy, $width, $height, $color) {} /** * Draw a character horizontally * @link https://php.net/manual/en/function.imagechar.php * @param resource $image * @param int $font * @param int $x* x-coordinate of the start. *
* @param int $y* y-coordinate of the start. *
* @param string $c* The character to draw. *
* @param int $color* A color identifier created with * imagecolorallocate. *
* @return bool TRUE on success or FALSE on failure. */ function imagechar ($image, $font, $x, $y, $c, $color) {} /** * Draw a character vertically * @link https://php.net/manual/en/function.imagecharup.php * @param resource $image * @param int $font * @param int $x* x-coordinate of the start. *
* @param int $y* y-coordinate of the start. *
* @param string $c* The character to draw. *
* @param int $color* A color identifier created with * imagecolorallocate. *
* @return bool TRUE on success or FALSE on failure. */ function imagecharup ($image, $font, $x, $y, $c, $color) {} /** * Get the index of the color of a pixel * @link https://php.net/manual/en/function.imagecolorat.php * @param resource $image * @param int $x* x-coordinate of the point. *
* @param int $y* y-coordinate of the point. *
* @return int|false the index of the color or FALSE on failure */ function imagecolorat ($image, $x, $y) {} /** * Allocate a color for an image * @link https://php.net/manual/en/function.imagecolorallocate.php * @param resource $image * @param int $redValue of red component.
* @param int $greenValue of green component.
* @param int $blueValue of blue component.
* @return int|false A color identifier or FALSE if the allocation failed. */ function imagecolorallocate ($image, $red, $green, $blue) {} /** * Copy the palette from one image to another * @link https://php.net/manual/en/function.imagepalettecopy.php * @param resource $destination* The destination image resource. *
* @param resource $source* The source image resource. *
* @return void No value is returned. */ function imagepalettecopy ($destination, $source) {} /** * Create a new image from the image stream in the string * @link https://php.net/manual/en/function.imagecreatefromstring.php * @param string $image* A string containing the image data. *
* @return resource|false An image resource will be returned on success. FALSE is returned if * the image type is unsupported, the data is not in a recognised format, * or the image is corrupt and cannot be loaded. */ function imagecreatefromstring ($image) {} /** * Get the index of the closest color to the specified color * @link https://php.net/manual/en/function.imagecolorclosest.php * @param resource $image * @param int $redValue of red component.
* @param int $greenValue of green component.
* @param int $blueValue of blue component.
* @return int|false the index of the closest color, in the palette of the image, to * the specified one or FALSE on failure */ function imagecolorclosest ($image, $red, $green, $blue) {} /** * Get the index of the color which has the hue, white and blackness * @link https://php.net/manual/en/function.imagecolorclosesthwb.php * @param resource $image * @param int $redValue of red component.
* @param int $greenValue of green component.
* @param int $blueValue of blue component.
* @return int|false an integer with the index of the color which has * the hue, white and blackness nearest the given color or FALSE on failure */ function imagecolorclosesthwb ($image, $red, $green, $blue) {} /** * De-allocate a color for an image * @link https://php.net/manual/en/function.imagecolordeallocate.php * @param resource $image * @param int $color* The color identifier. *
* @return bool TRUE on success or FALSE on failure. */ function imagecolordeallocate ($image, $color) {} /** * Get the index of the specified color or its closest possible alternative * @link https://php.net/manual/en/function.imagecolorresolve.php * @param resource $image * @param int $redValue of red component.
* @param int $greenValue of green component.
* @param int $blueValue of blue component.
* @return int|false a color index or FALSE on failure */ function imagecolorresolve ($image, $red, $green, $blue) {} /** * Get the index of the specified color * @link https://php.net/manual/en/function.imagecolorexact.php * @param resource $image * @param int $redValue of red component.
* @param int $greenValue of green component.
* @param int $blueValue of blue component.
* @return int|false the index of the specified color in the palette, -1 if the * color does not exist, or FALSE on failure */ function imagecolorexact ($image, $red, $green, $blue) {} /** * Set the color for the specified palette index * @link https://php.net/manual/en/function.imagecolorset.php * @param resource $image * @param int $index* An index in the palette. *
* @param int $redValue of red component.
* @param int $greenValue of green component.
* @param int $blueValue of blue component.
* @param int $alpha [optional]* Value of alpha component. *
* @return void No value is returned. */ function imagecolorset ($image, $index, $red, $green, $blue, $alpha = 0) {} /** * Define a color as transparent * @link https://php.net/manual/en/function.imagecolortransparent.php * @param resource $image * @param int $color [optional]* A color identifier created with * imagecolorallocate. *
* @return int|false The identifier of the new (or current, if none is specified) * transparent color is returned. If color * is not specified, and the image has no transparent color, the * returned identifier will be -1. If an error occurs, FALSE is returned. */ function imagecolortransparent ($image, $color = null) {} /** * Find out the number of colors in an image's palette * @link https://php.net/manual/en/function.imagecolorstotal.php * @param resource $image* An image resource, returned by one of the image creation functions, such * as imagecreatefromgif. *
* @return int|false the number of colors in the specified image's palette, 0 for * truecolor images, or FALSE on failure */ function imagecolorstotal ($image) {} /** * Get the colors for an index * @link https://php.net/manual/en/function.imagecolorsforindex.php * @param resource $image * @param int $index* The color index. *
* @return array|false an associative array with red, green, blue and alpha keys that * contain the appropriate values for the specified color index or FALSE on failure */ function imagecolorsforindex ($image, $index) {} /** * Copy part of an image * @link https://php.net/manual/en/function.imagecopy.php * @param resource $dst_im* Destination image link resource. *
* @param resource $src_im* Source image link resource. *
* @param int $dst_x* x-coordinate of destination point. *
* @param int $dst_y* y-coordinate of destination point. *
* @param int $src_x* x-coordinate of source point. *
* @param int $src_y* y-coordinate of source point. *
* @param int $src_w* Source width. *
* @param int $src_h* Source height. *
* @return bool true on success or false on failure. */ function imagecopy ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h) {} /** * Copy and merge part of an image * @link https://php.net/manual/en/function.imagecopymerge.php * @param resource $dst_im* Destination image link resource. *
* @param resource $src_im* Source image link resource. *
* @param int $dst_x* x-coordinate of destination point. *
* @param int $dst_y* y-coordinate of destination point. *
* @param int $src_x* x-coordinate of source point. *
* @param int $src_y* y-coordinate of source point. *
* @param int $src_w* Source width. *
* @param int $src_h* Source height. *
* @param int $pct* The two images will be merged according to pct * which can range from 0 to 100. When pct = 0, * no action is taken, when 100 this function behaves identically * to imagecopy for pallete images, while it * implements alpha transparency for true colour images. *
* @return bool true on success or false on failure. */ function imagecopymerge ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {} /** * Copy and merge part of an image with gray scale * @link https://php.net/manual/en/function.imagecopymergegray.php * @param resource $dst_im* Destination image link resource. *
* @param resource $src_im* Source image link resource. *
* @param int $dst_x* x-coordinate of destination point. *
* @param int $dst_y* y-coordinate of destination point. *
* @param int $src_x* x-coordinate of source point. *
* @param int $src_y* y-coordinate of source point. *
* @param int $src_w* Source width. *
* @param int $src_h* Source height. *
* @param int $pct* The src_im will be changed to grayscale according * to pct where 0 is fully grayscale and 100 is * unchanged. When pct = 100 this function behaves * identically to imagecopy for pallete images, while * it implements alpha transparency for true colour images. *
* @return bool true on success or false on failure. */ function imagecopymergegray ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {} /** * Copy and resize part of an image * @link https://php.net/manual/en/function.imagecopyresized.php * @param resource $dst_image * @param resource $src_image * @param int $dst_x* x-coordinate of destination point. *
* @param int $dst_y* y-coordinate of destination point. *
* @param int $src_x* x-coordinate of source point. *
* @param int $src_y* y-coordinate of source point. *
* @param int $dst_w* Destination width. *
* @param int $dst_h* Destination height. *
* @param int $src_w* Source width. *
* @param int $src_h* Source height. *
* @return bool true on success or false on failure. */ function imagecopyresized ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {} /** * Create a new palette based image * @link https://php.net/manual/en/function.imagecreate.php * @param int $width* The image width. *
* @param int $height* The image height. *
* @return resource|false an image resource identifier on success, false on errors. */ function imagecreate ($width, $height) {} /** * Create a new true color image * @link https://php.net/manual/en/function.imagecreatetruecolor.php * @param int $width* Image width. *
* @param int $height* Image height. *
* @return resource|false an image resource identifier on success, false on errors. */ function imagecreatetruecolor ($width, $height) {} /** * Finds whether an image is a truecolor image * @link https://php.net/manual/en/function.imageistruecolor.php * @param resource $image * @return bool true if the image is truecolor, false * otherwise. */ function imageistruecolor ($image) {} /** * Convert a true color image to a palette image * @link https://php.net/manual/en/function.imagetruecolortopalette.php * @param resource $image * @param bool $dither* Indicates if the image should be dithered - if it is true then * dithering will be used which will result in a more speckled image but * with better color approximation. *
* @param int $ncolors* Sets the maximum number of colors that should be retained in the palette. *
* @return bool true on success or false on failure. */ function imagetruecolortopalette ($image, $dither, $ncolors) {} /** * Set the thickness for line drawing * @link https://php.net/manual/en/function.imagesetthickness.php * @param resource $image * @param int $thickness* Thickness, in pixels. *
* @return bool true on success or false on failure. */ function imagesetthickness ($image, $thickness) {} /** * Draw a partial arc and fill it * @link https://php.net/manual/en/function.imagefilledarc.php * @param resource $image * @param int $cx* x-coordinate of the center. *
* @param int $cy* y-coordinate of the center. *
* @param int $width* The arc width. *
* @param int $height* The arc height. *
* @param int $start* The arc start angle, in degrees. *
* @param int $end* The arc end angle, in degrees. * 0° is located at the three-o'clock position, and the arc is drawn * clockwise. *
* @param int $color* A color identifier created with * imagecolorallocate. *
* @param int $style* A bitwise OR of the following possibilities: * IMG_ARC_PIE * @return bool true on success or false on failure. */ function imagefilledarc ($image, $cx, $cy, $width, $height, $start, $end, $color, $style) {} /** * Draw a filled ellipse * @link https://php.net/manual/en/function.imagefilledellipse.php * @param resource $image * @param int $cx
* x-coordinate of the center. *
* @param int $cy* y-coordinate of the center. *
* @param int $width* The ellipse width. *
* @param int $height* The ellipse height. *
* @param int $color* The fill color. A color identifier created with * imagecolorallocate. *
* @return bool true on success or false on failure. */ function imagefilledellipse ($image, $cx, $cy, $width, $height, $color) {} /** * Set the blending mode for an image * @link https://php.net/manual/en/function.imagealphablending.php * @param resource $image * @param bool $blendmode* Whether to enable the blending mode or not. On true color images * the default value is true otherwise the default value is false *
* @return bool true on success or false on failure. */ function imagealphablending ($image, $blendmode) {} /** * Set the flag to save full alpha channel information (as opposed to single-color transparency) when saving PNG images * @link https://php.net/manual/en/function.imagesavealpha.php * @param resource $image * @param bool $saveflag* Whether to save the alpha channel or not. Default to false. *
* @return bool true on success or false on failure. */ function imagesavealpha ($image, $saveflag) {} /** * Allocate a color for an image * @link https://php.net/manual/en/function.imagecolorallocatealpha.php * @param resource $image * @param int $red* Value of red component. *
* @param int $green* Value of green component. *
* @param int $blue* Value of blue component. *
* @param int $alpha* A value between 0 and 127. * 0 indicates completely opaque while * 127 indicates completely transparent. *
* @return int|false A color identifier or false if the allocation failed. */ function imagecolorallocatealpha ($image, $red, $green, $blue, $alpha) {} /** * Get the index of the specified color + alpha or its closest possible alternative * @link https://php.net/manual/en/function.imagecolorresolvealpha.php * @param resource $image * @param int $red* Value of red component. *
* @param int $green* Value of green component. *
* @param int $blue* Value of blue component. *
* @param int $alpha* A value between 0 and 127. * 0 indicates completely opaque while * 127 indicates completely transparent. *
* @return int|false a color index or FALSE on failure */ function imagecolorresolvealpha ($image, $red, $green, $blue, $alpha) {} /** * Get the index of the closest color to the specified color + alpha * @link https://php.net/manual/en/function.imagecolorclosestalpha.php * @param resource $image * @param int $red* Value of red component. *
* @param int $green* Value of green component. *
* @param int $blue* Value of blue component. *
* @param int $alpha* A value between 0 and 127. * 0 indicates completely opaque while * 127 indicates completely transparent. *
* @return int|false the index of the closest color in the palette or * FALSE on failure */ function imagecolorclosestalpha ($image, $red, $green, $blue, $alpha) {} /** * Get the index of the specified color + alpha * @link https://php.net/manual/en/function.imagecolorexactalpha.php * @param resource $image * @param int $red* Value of red component. *
* @param int $green* Value of green component. *
* @param int $blue* Value of blue component. *
* @param int $alpha* A value between 0 and 127. * 0 indicates completely opaque while * 127 indicates completely transparent. *
* @return int|false the index of the specified color+alpha in the palette of the * image, -1 if the color does not exist in the image's palette, or FALSE * on failure */ function imagecolorexactalpha ($image, $red, $green, $blue, $alpha) {} /** * Copy and resize part of an image with resampling * @link https://php.net/manual/en/function.imagecopyresampled.php * @param resource $dst_image * @param resource $src_image * @param int $dst_x* x-coordinate of destination point. *
* @param int $dst_y* y-coordinate of destination point. *
* @param int $src_x* x-coordinate of source point. *
* @param int $src_y* y-coordinate of source point. *
* @param int $dst_w* Destination width. *
* @param int $dst_h* Destination height. *
* @param int $src_w* Source width. *
* @param int $src_h* Source height. *
* @return bool true on success or false on failure. */ function imagecopyresampled ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {} /** * Rotate an image with a given angle * @link https://php.net/manual/en/function.imagerotate.php * @param resource $image * @param float $angle* Rotation angle, in degrees. *
* @param int $bgd_color* Specifies the color of the uncovered zone after the rotation *
* @param int $ignore_transparent [optional]* If set and non-zero, transparent colors are ignored (otherwise kept). *
* @return resource|false the rotated image or FALSE on failure */ function imagerotate ($image, $angle, $bgd_color, $ignore_transparent = null) {} /** * Should antialias functions be used or not.* Whether to enable antialiasing or not. *
* @return bool true on success or false on failure. */ function imageantialias ($image, $enabled) {} /** * Set the tile image for filling * @link https://php.net/manual/en/function.imagesettile.php * @param resource $image * @param resource $tile* The image resource to be used as a tile. *
* @return bool true on success or false on failure. */ function imagesettile ($image, $tile) {} /** * Set the brush image for line drawing * @link https://php.net/manual/en/function.imagesetbrush.php * @param resource $image * @param resource $brush* An image resource. *
* @return bool true on success or false on failure. */ function imagesetbrush ($image, $brush) {} /** * Set the style for line drawing * @link https://php.net/manual/en/function.imagesetstyle.php * @param resource $image * @param array $style* An array of pixel colors. You can use the * IMG_COLOR_TRANSPARENT constant to add a * transparent pixel. *
* @return bool true on success or false on failure. */ function imagesetstyle ($image, array $style) {} /** * Create a new image from file or URL * @link https://php.net/manual/en/function.imagecreatefrompng.php * @param string $filename* Path to the PNG image. *
* @return resource|false an image resource identifier on success, false on errors. */ function imagecreatefrompng ($filename) {} /** * Create a new image from file or URL * @link https://php.net/manual/en/function.imagecreatefromgif.php * @param string $filename* Path to the GIF image. *
* @return resource|false an image resource identifier on success, false on errors. */ function imagecreatefromgif ($filename) {} /** * Create a new image from file or URL * @link https://php.net/manual/en/function.imagecreatefromjpeg.php * @param string $filename* Path to the JPEG image. *
* @return resource|false an image resource identifier on success, false on errors. */ function imagecreatefromjpeg ($filename) {} /** * Create a new image from file or URL * @link https://php.net/manual/en/function.imagecreatefromwbmp.php * @param string $filename* Path to the WBMP image. *
* @return resource|false an image resource identifier on success, false on errors. */ function imagecreatefromwbmp ($filename) {} /** * Create a new image from file or URL * @link https://php.net/manual/en/function.imagecreatefromwebp.php * @param string $filename* Path to the WebP image. *
* @return resource|false an image resource identifier on success, false on errors. * @since 5.4 */ function imagecreatefromwebp ($filename) {} /** * Create a new image from file or URL * @link https://php.net/manual/en/function.imagecreatefromxbm.php * @param string $filename* Path to the XBM image. *
* @return resource|false an image resource identifier on success, false on errors. */ function imagecreatefromxbm ($filename) {} /** * Create a new image from file or URL * @link https://php.net/manual/en/function.imagecreatefromxpm.php * @param string $filename* Path to the XPM image. *
* @return resource|false an image resource identifier on success, false on errors. */ function imagecreatefromxpm ($filename) {} /** * Create a new image from GD file or URL * @link https://php.net/manual/en/function.imagecreatefromgd.php * @param string $filename* Path to the GD file. *
* @return resource|false an image resource identifier on success, false on errors. */ function imagecreatefromgd ($filename) {} /** * Create a new image from GD2 file or URL * @link https://php.net/manual/en/function.imagecreatefromgd2.php * @param string $filename* Path to the GD2 image. *
* @return resource|false an image resource identifier on success, false on errors. */ function imagecreatefromgd2 ($filename) {} /** * Create a new image from a given part of GD2 file or URL * @link https://php.net/manual/en/function.imagecreatefromgd2part.php * @param string $filename* Path to the GD2 image. *
* @param int $srcX* x-coordinate of source point. *
* @param int $srcY* y-coordinate of source point. *
* @param int $width* Source width. *
* @param int $height* Source height. *
* @return resource|false an image resource identifier on success, false on errors. */ function imagecreatefromgd2part ($filename, $srcX, $srcY, $width, $height) {} /** * Output a PNG image to either the browser or a file * @link https://php.net/manual/en/function.imagepng.php * @param resource $image * @param string $filename [optional]* The path to save the file to. If not set or &null;, the raw image stream * will be outputted directly. *
** &null; is invalid if the quality and * filters arguments are not used. *
* @param int $quality [optional]* Compression level: from 0 (no compression) to 9. *
* @param int $filters [optional]* Allows reducing the PNG file size. It is a bitmask field which may be * set to any combination of the PNG_FILTER_XXX * constants. PNG_NO_FILTER or * PNG_ALL_FILTERS may also be used to respectively * disable or activate all filters. *
* @return bool true on success or false on failure. */ function imagepng ($image, $filename = null, $quality = null, $filters = null) {} /** * Output a WebP image to browser or file * @link https://php.net/manual/en/function.imagewebp.php * @param resource $image * @param string $to [optional]* The path to save the file to. If not set or &null;, the raw image stream * will be outputted directly. *
* @param int $quality [optional]* quality ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file). *
* @return bool true on success or false on failure. * @since 5.4 */ function imagewebp ($image, $to = null, $quality = 80) {} /** * Output image to browser or file * @link https://php.net/manual/en/function.imagegif.php * @param resource $image * @param string $filename [optional]* The path to save the file to. If not set or &null;, the raw image stream * will be outputted directly. *
* @return bool true on success or false on failure. */ function imagegif ($image, $filename = null) {} /** * Output image to browser or file * @link https://php.net/manual/en/function.imagejpeg.php * @param resource $image * @param string $filename [optional]* The path to save the file to. If not set or &null;, the raw image stream * will be outputted directly. *
** To skip this argument in order to provide the * quality parameter, use &null;. *
* @param int $quality [optional]* quality is optional, and ranges from 0 (worst * quality, smaller file) to 100 (best quality, biggest file). The * default is the default IJG quality value (about 75). *
* @return bool true on success or false on failure. */ function imagejpeg ($image, $filename = null, $quality = null) {} /** * Output image to browser or file * @link https://php.net/manual/en/function.imagewbmp.php * @param resource $image * @param string $filename [optional]* The path to save the file to. If not set or &null;, the raw image stream * will be outputted directly. *
* @param int $foreground [optional]* You can set the foreground color with this parameter by setting an * identifier obtained from imagecolorallocate. * The default foreground color is black. *
* @return bool true on success or false on failure. */ function imagewbmp ($image, $filename = null, $foreground = null) {} /** * Output GD image to browser or file.* The path to save the file to. If not set or &null;, the raw image stream * will be outputted directly. *
* @return bool true on success or false on failure. */ function imagegd ($image, $filename = null) {} /** * Output GD2 image to browser or file * @link https://php.net/manual/en/function.imagegd2.php * @param resource $image * @param string $filename [optional]* The path to save the file to. If not set or &null;, the raw image stream * will be outputted directly. *
* @param int $chunk_size [optional]* Chunk size. *
* @param int $type [optional]* Either IMG_GD2_RAW or * IMG_GD2_COMPRESSED. Default is * IMG_GD2_RAW. *
* @return bool true on success or false on failure. */ function imagegd2 ($image, $filename = null, $chunk_size = null, $type = null) {} /** * Destroy an image * @link https://php.net/manual/en/function.imagedestroy.php * @param resource $image * @return bool true on success or false on failure. */ function imagedestroy ($image) {} /** * Apply a gamma correction to a GD image * @link https://php.net/manual/en/function.imagegammacorrect.php * @param resource $image * @param float $inputgamma* The input gamma. *
* @param float $outputgamma* The output gamma. *
* @return bool true on success or false on failure. */ function imagegammacorrect ($image, $inputgamma, $outputgamma) {} /** * Flood fill * @link https://php.net/manual/en/function.imagefill.php * @param resource $image * @param int $x* x-coordinate of start point. *
* @param int $y* y-coordinate of start point. *
* @param int $color* The fill color. A color identifier created with * imagecolorallocate. *
* @return bool true on success or false on failure. */ function imagefill ($image, $x, $y, $color) {} /** * Draw a filled polygon * @link https://php.net/manual/en/function.imagefilledpolygon.php * @param resource $image * @param array $points* An array containing the x and y * coordinates of the polygons vertices consecutively. *
* @param int $num_points [optional]* Total number of vertices, which must be at least 3. *
* @param int $color* A color identifier created with * imagecolorallocate. *
* @return bool true on success or false on failure. */ function imagefilledpolygon ($image, array $points, $num_points, $color) {} /** * Draw a filled rectangle * @link https://php.net/manual/en/function.imagefilledrectangle.php * @param resource $image * @param int $x1* x-coordinate for point 1. *
* @param int $y1* y-coordinate for point 1. *
* @param int $x2* x-coordinate for point 2. *
* @param int $y2* y-coordinate for point 2. *
* @param int $color* The fill color. A color identifier created with * imagecolorallocate. *
* @return bool true on success or false on failure. */ function imagefilledrectangle ($image, $x1, $y1, $x2, $y2, $color) {} /** * Flood fill to specific color * @link https://php.net/manual/en/function.imagefilltoborder.php * @param resource $image * @param int $x* x-coordinate of start. *
* @param int $y* y-coordinate of start. *
* @param int $border* The border color. A color identifier created with * imagecolorallocate. *
* @param int $color* The fill color. A color identifier created with * imagecolorallocate. *
* @return bool true on success or false on failure. */ function imagefilltoborder ($image, $x, $y, $border, $color) {} /** * Get font width * @link https://php.net/manual/en/function.imagefontwidth.php * @param int $font * @return int the width of the pixel */ function imagefontwidth ($font) {} /** * Get font height * @link https://php.net/manual/en/function.imagefontheight.php * @param int $font * @return int the height of the pixel. */ function imagefontheight ($font) {} /** * Enable or disable interlace * @link https://php.net/manual/en/function.imageinterlace.php * @param resource $image * @param int $interlace [optional]* If non-zero, the image will be interlaced, else the interlace bit is * turned off. *
* @return int|false 1 if the interlace bit is set for the image, * 0 if it is not, or FALSE on failure */ function imageinterlace ($image, $interlace = null) {} /** * Draw a line * @link https://php.net/manual/en/function.imageline.php * @param resource $image * @param int $x1* x-coordinate for first point. *
* @param int $y1* y-coordinate for first point. *
* @param int $x2* x-coordinate for second point. *
* @param int $y2* y-coordinate for second point. *
* @param int $color* The line color. A color identifier created with * imagecolorallocate. *
* @return bool true on success or false on failure. */ function imageline ($image, $x1, $y1, $x2, $y2, $color) {} /** * Load a new font * @link https://php.net/manual/en/function.imageloadfont.php * @param string $file* The font file format is currently binary and architecture * dependent. This means you should generate the font files on the * same type of CPU as the machine you are running PHP on. *
**
byte position | *C data type | *description | *
byte 0-3 | *int | *number of characters in the font | *
byte 4-7 | *int | ** value of first character in the font (often 32 for space) * | *
byte 8-11 | *int | *pixel width of each character | *
byte 12-15 | *int | *pixel height of each character | *
byte 16- | *char | ** array with character data, one byte per pixel in each * character, for a total of (nchars*width*height) bytes. * | *
* An array containing the polygon's vertices, e.g.: *
* Total number of points (vertices). *
* @param int $color* A color identifier created with * imagecolorallocate. *
* @return bool true on success or false on failure. */ function imagepolygon ($image, array $points, $num_points, $color) {} /** * Draw a rectangle * @link https://php.net/manual/en/function.imagerectangle.php * @param resource $image * @param int $x1* Upper left x coordinate. *
* @param int $y1* Upper left y coordinate * 0, 0 is the top left corner of the image. *
* @param int $x2* Bottom right x coordinate. *
* @param int $y2* Bottom right y coordinate. *
* @param int $color* A color identifier created with * imagecolorallocate. *
* @return bool true on success or false on failure. */ function imagerectangle ($image, $x1, $y1, $x2, $y2, $color) {} /** * Set a single pixel * @link https://php.net/manual/en/function.imagesetpixel.php * @param resource $image * @param int $x* x-coordinate. *
* @param int $y* y-coordinate. *
* @param int $color* A color identifier created with * imagecolorallocate. *
* @return bool true on success or false on failure. */ function imagesetpixel ($image, $x, $y, $color) {} /** * Draw a string horizontally * @link https://php.net/manual/en/function.imagestring.php * @param resource $image * @param int $font * @param int $x* x-coordinate of the upper left corner. *
* @param int $y* y-coordinate of the upper left corner. *
* @param string $string* The string to be written. *
* @param int $color* A color identifier created with * imagecolorallocate. *
* @return bool true on success or false on failure. */ function imagestring ($image, $font, $x, $y, $string, $color) {} /** * Draw a string vertically * @link https://php.net/manual/en/function.imagestringup.php * @param resource $image * @param int $font * @param int $x* x-coordinate of the upper left corner. *
* @param int $y* y-coordinate of the upper left corner. *
* @param string $string* The string to be written. *
* @param int $color* A color identifier created with * imagecolorallocate. *
* @return bool true on success or false on failure. */ function imagestringup ($image, $font, $x, $y, $string, $color) {} /** * Get image width * @link https://php.net/manual/en/function.imagesx.php * @param resource $image * @return int|false Return the width of the image or false on * errors. */ function imagesx ($image) {} /** * Get image height * @link https://php.net/manual/en/function.imagesy.php * @param resource $image * @return int|false Return the height of the image or false on * errors. */ function imagesy ($image) {} /** * Draw a dashed line * @link https://php.net/manual/en/function.imagedashedline.php * @param resource $image * @param int $x1* Upper left x coordinate. *
* @param int $y1* Upper left y coordinate 0, 0 is the top left corner of the image. *
* @param int $x2* Bottom right x coordinate. *
* @param int $y2* Bottom right y coordinate. *
* @param int $color* The fill color. A color identifier created with * imagecolorallocate. *
* @return bool TRUE on success or FALSE on failure. * @deprecated Use combination of imagesetstyle() and imageline() instead */ function imagedashedline ($image, $x1, $y1, $x2, $y2, $color) {} /** * Give the bounding box of a text using TrueType fonts * @link https://php.net/manual/en/function.imagettfbbox.php * @param float $size* The font size. Depending on your version of GD, this should be * specified as the pixel size (GD1) or point size (GD2). *
* @param float $angle* Angle in degrees in which text will be measured. *
* @param string $fontfile* The name of the TrueType font file (can be a URL). Depending on * which version of the GD library that PHP is using, it may attempt to * search for files that do not begin with a leading '/' by appending * '.ttf' to the filename and searching along a library-defined font path. *
* @param string $text* The string to be measured. *
* @return array|false imagettfbbox returns an array with 8 * elements representing four points making the bounding box of the * text on success and false on error. ** The points are relative to the text regardless of the * angle, so "upper left" means in the top left-hand * corner seeing the text horizontally. */ function imagettfbbox ($size, $angle, $fontfile, $text) {} /** * Write text to the image using TrueType fonts * @link https://php.net/manual/en/function.imagettftext.php * @param resource $image * @param float $size
* The font size. Depending on your version of GD, this should be * specified as the pixel size (GD1) or point size (GD2). *
* @param float $angle* The angle in degrees, with 0 degrees being left-to-right reading text. * Higher values represent a counter-clockwise rotation. For example, a * value of 90 would result in bottom-to-top reading text. *
* @param int $x* The coordinates given by x and * y will define the basepoint of the first * character (roughly the lower-left corner of the character). This * is different from the imagestring, where * x and y define the * upper-left corner of the first character. For example, "top left" * is 0, 0. *
* @param int $y* The y-ordinate. This sets the position of the fonts baseline, not the * very bottom of the character. *
* @param int $color* The color index. Using the negative of a color index has the effect of * turning off antialiasing. See imagecolorallocate. *
* @param string $fontfile* The path to the TrueType font you wish to use. *
** Depending on which version of the GD library PHP is using, when * fontfile does not begin with a leading * / then .ttf will be appended * to the filename and the library will attempt to search for that * filename along a library-defined font path. *
** When using versions of the GD library lower than 2.0.18, a space character, * rather than a semicolon, was used as the 'path separator' for different font files. * Unintentional use of this feature will result in the warning message: * Warning: Could not find/open font. For these affected versions, the * only solution is moving the font to a path which does not contain spaces. *
** In many cases where a font resides in the same directory as the script using it * the following trick will alleviate any include problems. *
** **
* Note:
* open_basedir
does not apply to fontfile.
*
* The text string in UTF-8 encoding. *
** May include decimal numeric character references (of the form: * €) to access characters in a font beyond position 127. * The hexadecimal format (like ©) is supported. * Strings in UTF-8 encoding can be passed directly. *
** Named entities, such as ©, are not supported. Consider using * html_entity_decode * to decode these named entities into UTF-8 strings (html_entity_decode() * supports this as of PHP 5.0.0). *
** If a character is used in the string which is not supported by the * font, a hollow rectangle will replace the character. *
* @return array|false an array with 8 elements representing four points making the * bounding box of the text. The order of the points is lower left, lower * right, upper right, upper left. The points are relative to the text * regardless of the angle, so "upper left" means in the top left-hand * corner when you see the text horizontally. * Returns false on error. */ function imagettftext ($image, $size, $angle, $x, $y, $color, $fontfile, $text) {} /** * Give the bounding box of a text using fonts via freetype2 * @link https://php.net/manual/en/function.imageftbbox.php * @param float $size* The font size. Depending on your version of GD, this should be * specified as the pixel size (GD1) or point size (GD2). *
* @param float $angle* Angle in degrees in which text will be * measured. *
* @param string $fontfile* The name of the TrueType font file (can be a URL). Depending on * which version of the GD library that PHP is using, it may attempt to * search for files that do not begin with a leading '/' by appending * '.ttf' to the filename and searching along a library-defined font path. *
* @param string $text* The string to be measured. *
* @param array $extrainfo [optional]*
Key | *Type | *Meaning | *
linespacing | *float | *Defines drawing linespacing | *
* The points are relative to the text regardless of the * angle, so "upper left" means in the top left-hand * corner seeing the text horizontally. * Returns false on error. */ function imageftbbox ($size, $angle, $fontfile, $text, $extrainfo = null ) {} /** * Write text to the image using fonts using FreeType 2 * @link https://php.net/manual/en/function.imagefttext.php * @param resource $image * @param float $size
* The font size to use in points. *
* @param float $angle* The angle in degrees, with 0 degrees being left-to-right reading text. * Higher values represent a counter-clockwise rotation. For example, a * value of 90 would result in bottom-to-top reading text. *
* @param int $x* The coordinates given by x and * y will define the basepoint of the first * character (roughly the lower-left corner of the character). This * is different from the imagestring, where * x and y define the * upper-left corner of the first character. For example, "top left" * is 0, 0. *
* @param int $y* The y-ordinate. This sets the position of the fonts baseline, not the * very bottom of the character. *
* @param int $color* The index of the desired color for the text, see * imagecolorexact. *
* @param string $fontfile* The path to the TrueType font you wish to use. *
** Depending on which version of the GD library PHP is using, when * fontfile does not begin with a leading * / then .ttf will be appended * to the filename and the library will attempt to search for that * filename along a library-defined font path. *
** When using versions of the GD library lower than 2.0.18, a space character, * rather than a semicolon, was used as the 'path separator' for different font files. * Unintentional use of this feature will result in the warning message: * Warning: Could not find/open font. For these affected versions, the * only solution is moving the font to a path which does not contain spaces. *
** In many cases where a font resides in the same directory as the script using it * the following trick will alleviate any include problems. *
** **
* Note:
* open_basedir
does not apply to fontfile.
*
* Text to be inserted into image. *
* @param array $extrainfo [optional]*
Key | *Type | *Meaning | *
linespacing | *float | *Defines drawing linespacing | *
* Path to the Postscript font file. *
* @return resource|false In the case everything went right, a valid font index will be returned and * can be used for further purposes. Otherwise the function returns false. * @removed 7.0 This function was REMOVED in PHP 7.0.0. */ function imagepsloadfont ($filename) {} /** * Free memory used by a PostScript Type 1 font * @link https://php.net/manual/en/function.imagepsfreefont.php * @param resource $font_index* A font resource, returned by imagepsloadfont. *
* @return bool true on success or false on failure. * @removed 7.0 */ function imagepsfreefont ($font_index) {} /** * Change the character encoding vector of a font * @link https://php.net/manual/en/function.imagepsencodefont.php * @param resource $font_index* A font resource, returned by imagepsloadfont. *
* @param string $encodingfile* The exact format of this file is described in T1libs documentation. * T1lib comes with two ready-to-use files, * IsoLatin1.enc and * IsoLatin2.enc. *
* @return bool true on success or false on failure. * @removed 7.0 */ function imagepsencodefont ($font_index, $encodingfile) {} /** * Extend or condense a font * @link https://php.net/manual/en/function.imagepsextendfont.php * @param resource $font_index* A font resource, returned by imagepsloadfont. *
* @param float $extend* Extension value, must be greater than 0. *
* @return bool true on success or false on failure. * @removed 7.0 */ function imagepsextendfont ($font_index, $extend) {} /** * Slant a font * @link https://php.net/manual/en/function.imagepsslantfont.php * @param resource $font_index* A font resource, returned by imagepsloadfont. *
* @param float $slant* Slant level. *
* @return bool true on success or false on failure. * @removed 7.0 This function was REMOVED in PHP 7.0.0. */ function imagepsslantfont ($font_index, $slant) {} /** * Draws a text over an image using PostScript Type1 fonts * @link https://php.net/manual/en/function.imagepstext.php * @param resource $image * @param string $text* The text to be written. *
* @param resource $font_index* A font resource, returned by imagepsloadfont. *
* @param int $size* size is expressed in pixels. *
* @param int $foreground* The color in which the text will be painted. *
* @param int $background* The color to which the text will try to fade in with antialiasing. * No pixels with the color background are * actually painted, so the background image does not need to be of solid * color. *
* @param int $x* x-coordinate for the lower-left corner of the first character. *
* @param int $y* y-coordinate for the lower-left corner of the first character. *
* @param int $space [optional]* Allows you to change the default value of a space in a font. This * amount is added to the normal value and can also be negative. * Expressed in character space units, where 1 unit is 1/1000th of an * em-square. *
* @param int $tightness [optional]* tightness allows you to control the amount * of white space between characters. This amount is added to the * normal character width and can also be negative. * Expressed in character space units, where 1 unit is 1/1000th of an * em-square. *
* @param float $angle [optional]* angle is in degrees. *
* @param int $antialias_steps [optional]* Allows you to control the number of colours used for antialiasing * text. Allowed values are 4 and 16. The higher value is recommended * for text sizes lower than 20, where the effect in text quality is * quite visible. With bigger sizes, use 4. It's less computationally * intensive. *
* @return array|false This function returns an array containing the following elements: ** The text to be written. *
* @param resource $font * @param int $size* size is expressed in pixels. *
* @return array|false an array containing the following elements: ** Path to JPEG file. *
* @param string $wbmpname* Path to destination WBMP file. *
* @param int $dest_height* Destination image height. *
* @param int $dest_width* Destination image width. *
* @param int $threshold* Threshold value, between 0 and 8 (inclusive). *
* @return bool true on success or false on failure. * @deprecated 7.2 Use imagecreatefromjpeg() and imagewbmp() instead * @removed 8.0 */ function jpeg2wbmp ($jpegname, $wbmpname, $dest_height, $dest_width, $threshold) {} /** * Convert PNG image file to WBMP image file * @link https://php.net/manual/en/function.png2wbmp.php * @param string $pngname* Path to PNG file. *
* @param string $wbmpname* Path to destination WBMP file. *
* @param int $dest_height* Destination image height. *
* @param int $dest_width* Destination image width. *
* @param int $threshold* Threshold value, between 0 and 8 (inclusive). *
* @return bool true on success or false on failure. * @deprecated 7.2 Use imagecreatefrompng() and imagewbmp() instead * @removed 8.0 */ function png2wbmp ($pngname, $wbmpname, $dest_height, $dest_width, $threshold) {} /** * Output image to browser or file * @link https://php.net/manual/en/function.image2wbmp.php * @param resource $image * @param string $filename [optional]* Path to the saved file. If not given, the raw image stream will be * outputted directly. *
* @param int $threshold [optional]* Threshold value, between 0 and 255 (inclusive). *
* @return bool true on success or false on failure. * @deprecated 7.3 Use imagewbmp() instead * @removed 8.0 */ function image2wbmp ($image, $filename = null, $threshold = null) {} /** * Set the alpha blending flag to use the bundled libgd layering effects * @link https://php.net/manual/en/function.imagelayereffect.php * @param resource $image * @param int $effect* One of the following constants: * IMG_EFFECT_REPLACE * Use pixel replacement (equivalent of passing true to * imagealphablending) * @return bool true on success or false on failure. */ function imagelayereffect ($image, $effect) {} /** * Makes the colors of the palette version of an image more closely match the true color version * @link https://php.net/manual/en/function.imagecolormatch.php * @param $image1 resource
* A truecolor image link resource. *
* @param $image2 resource* A palette image link resource pointing to an image that has the same * size as image1. *
* @return bool true on success or false on failure. */ function imagecolormatch ($image1, $image2) {} /** * Output XBM image to browser or file * @link https://php.net/manual/en/function.imagexbm.php * @param resource $image * @param string $filename* The path to save the file to. If not set or &null;, the raw image stream * will be outputted directly. *
* @param int $foreground [optional]* You can set the foreground color with this parameter by setting an * identifier obtained from imagecolorallocate. * The default foreground color is black. *
* @return bool true on success or false on failure. */ function imagexbm ($image, $filename, $foreground = null) {} /** * Applies a filter to an image * @link https://php.net/manual/en/function.imagefilter.php * @param resource $image * @param int $filtertype* filtertype can be one of the following: * IMG_FILTER_NEGATE: Reverses all colors of * the image. * @param int $arg1 [optional]
* IMG_FILTER_BRIGHTNESS: Brightness level. * @param int $arg2 [optional]
* IMG_FILTER_COLORIZE: Value of green component. * @param int $arg3 [optional]
* IMG_FILTER_COLORIZE: Value of blue component. * @param int $arg4 [optional]
* IMG_FILTER_COLORIZE: Alpha channel, A value * between 0 and 127. 0 indicates completely opaque while 127 indicates * completely transparent. * @return bool true on success or false on failure. */ function imagefilter ($image, $filtertype, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null) {} /** * Apply a 3x3 convolution matrix, using coefficient and offset * @link https://php.net/manual/en/function.imageconvolution.php * @param resource $image * @param array $matrix
* A 3x3 matrix: an array of three arrays of three floats. *
* @param float $div* The divisor of the result of the convolution, used for normalization. *
* @param float $offset* Color offset. *
* @return bool true on success or false on failure. */ function imageconvolution ($image, array $matrix, $div, $offset) {} /** * @param resource $im An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}. * @param int $res_x [optional] The horizontal resolution in DPI. * @param int $res_y [optional] The vertical resolution in DPI. * @return array|bool When used as getter (that is without the optional parameters), it returns TRUE on success, or FALSE on failure. When used as setter (that is with one or both optional parameters given), it returns an indexed array of the horizontal and vertical resolution on success, or FALSE on failure. * @link https://php.net/manual/en/function.imageresolution.php * @since 7.2 */ function imageresolution ($im, $res_x = 96, $res_y = 96) {} /** * imagesetclip() sets the current clipping rectangle, i.e. the area beyond which no pixels will be drawn. * @param resource $im An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}. * @param int $x1 The x-coordinate of the upper left corner. * @param int $y1 The y-coordinate of the upper left corner. * @param int $x2 The x-coordinate of the lower right corner. * @param int $y2 The y-coordinate of the lower right corner. * @return bool Returns TRUE on success or FALSE on failure. * @link https://php.net/manual/en/function.imagesetclip.php * @see imagegetclip() * @since 7.2 */ function imagesetclip ($im, $x1, $y1, $x2, $y2) {} /** * imagegetclip() retrieves the current clipping rectangle, i.e. the area beyond which no pixels will be drawn. * @param resource $im An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()} * @return array|false an indexed array with the coordinates of the clipping rectangle which has the following entries: ** points[0] = x0 * points[1] = y0 * points[2] = x1 * points[3] = y1 ** @param int $num_points [optional] Total number of points (vertices). * @param int $color A color identifier created with {@see imagecolorallocate()}. * @return bool Returns TRUE on success or FALSE on failure. * @link https://php.net/manual/en/function.imageopenpolygon.php * @since 7.2 * @see imageplygon() */ function imageopenpolygon ($image , $points, $num_points, $color) {} /** * imagecreatefrombmp() returns an image identifier representing the image obtained from the given filename. * TIP A URL can be used as a filename with this function if the fopen wrappers have been enabled. See {@see fopen()} for more details on how to specify the filename. See the Supported Protocols and Wrappers for links to information about what abilities the various wrappers have, notes on their usage, and information on any predefined variables they may provide. * @param string $filename Path to the BMP image. * @return resource|false Returns an image resource identifier on success, FALSE on errors. * @link https://php.net/manual/en/function.imagecreatefrombmp.php * @since 7.2 */ function imagecreatefrombmp($filename){} /** * Outputs or saves a BMP version of the given image. * @param resource $image An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}. * @param mixed $to The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. *
* This constant has the same value as {@see IMG_JPG} *
* @link https://php.net/manual/en/image.constants.php#constant.img-jpeg */ define ('IMG_JPEG', 2); /** * Used as a return value by {@see imagetypes()} * @link https://php.net/manual/en/image.constants.php#constant.img-png */ define ('IMG_PNG', 4); /** * Used as a return value by {@see imagetypes()} * @link https://php.net/manual/en/image.constants.php#constant.img-wbmp */ define ('IMG_WBMP', 8); /** * Used as a return value by {@see imagetypes()} * @link https://php.net/manual/en/image.constants.php#constant.img-xpm */ define ('IMG_XPM', 16); /** * Used as a return value by {@see imagetypes()} * @since 5.6.25 * @since 7.0.10 * @link https://php.net/manual/en/image.constants.php#constant.img-webp */ define('IMG_WEBP', 32); /** * Used as a return value by {@see imagetypes()} * @since 7.2 * @link https://php.net/manual/en/image.constants.php#constant.img-bmp */ define('IMG_BMP', 64); /** * Special color option which can be used instead of color allocated with * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()} * @link https://php.net/manual/en/image.constants.php#constant.img-color-tiled */ define ('IMG_COLOR_TILED', -5); /** * Special color option which can be used instead of color allocated with * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()} * @link https://php.net/manual/en/image.constants.php#constant.img-color-styled */ define ('IMG_COLOR_STYLED', -2); /** * Special color option which can be used instead of color allocated with * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()} * @link https://php.net/manual/en/image.constants.php#constant.img-color-brushed */ define ('IMG_COLOR_BRUSHED', -3); /** * Special color option which can be used instead of color allocated with * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()} * @link https://php.net/manual/en/image.constants.php#constant.img-color-styledbrushed */ define ('IMG_COLOR_STYLEDBRUSHED', -4); /** * Special color option which can be used instead of color allocated with * {@see imagecolorallocate()} or {@see imagecolorallocatealpha()} * @link https://php.net/manual/en/image.constants.php#constant.img-color-transparent */ define ('IMG_COLOR_TRANSPARENT', -6); /** * A style constant used by the {@see imagefilledarc()} function. ** This constant has the same value as {@see IMG_ARC_PIE} *
* @link https://php.net/manual/en/image.constants.php#constant.img-arc-rounded */ define ('IMG_ARC_ROUNDED', 0); /** * A style constant used by the {@see imagefilledarc()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-pie */ define ('IMG_ARC_PIE', 0); /** * A style constant used by the {@see imagefilledarc()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-chord */ define ('IMG_ARC_CHORD', 1); /** * A style constant used by the {@see imagefilledarc()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-nofill */ define ('IMG_ARC_NOFILL', 2); /** * A style constant used by the {@see imagefilledarc()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-arc-edged */ define ('IMG_ARC_EDGED', 4); /** * A type constant used by the {@see imagegd2()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-gd2-raw */ define ('IMG_GD2_RAW', 1); /** * A type constant used by the {@see imagegd2()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-gd2-compressed */ define ('IMG_GD2_COMPRESSED', 2); /** * Alpha blending effect used by the {@see imagelayereffect()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-replace */ define ('IMG_EFFECT_REPLACE', 0); /** * Alpha blending effect used by the {@see imagelayereffect()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-alphablend */ define ('IMG_EFFECT_ALPHABLEND', 1); /** * Alpha blending effect used by the {@see imagelayereffect()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-normal */ define ('IMG_EFFECT_NORMAL', 2); /** * Alpha blending effect used by the {@see imagelayereffect()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-overlay */ define ('IMG_EFFECT_OVERLAY', 3); /** * Alpha blending effect used by the {@see imagelayereffect()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-effect-multiply * @since 7.2 */ define ('IMG_EFFECT_MULTIPLY', 4); /** * When the bundled version of GD is used this is 1 otherwise * it's set to 0. * @link https://php.net/manual/en/image.constants.php */ define ('GD_BUNDLED', 1); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-negate */ define ('IMG_FILTER_NEGATE', 0); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-grayscale */ define ('IMG_FILTER_GRAYSCALE', 1); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-brightness */ define ('IMG_FILTER_BRIGHTNESS', 2); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-contrast */ define ('IMG_FILTER_CONTRAST', 3); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-colorize */ define ('IMG_FILTER_COLORIZE', 4); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-edgedetect */ define ('IMG_FILTER_EDGEDETECT', 5); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-gaussian-blur */ define ('IMG_FILTER_GAUSSIAN_BLUR', 7); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-selective-blur */ define ('IMG_FILTER_SELECTIVE_BLUR', 8); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-emboss */ define ('IMG_FILTER_EMBOSS', 6); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-mean-removal */ define ('IMG_FILTER_MEAN_REMOVAL', 9); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-smooth */ define ('IMG_FILTER_SMOOTH', 10); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-pixelate */ define ('IMG_FILTER_PIXELATE', 11); /** * Special GD filter used by the {@see imagefilter()} function. * @link https://php.net/manual/en/image.constants.php#constant.img-filter-scatter * @since 7.4 */ define ('IMG_FILTER_SCATTER', 12); /** * The GD version PHP was compiled against. * @since 5.2.4 * @link https://php.net/manual/en/image.constants.php#constant.gd-version */ define ('GD_VERSION', "2.0.35"); /** * The GD major version PHP was compiled against. * @since 5.2.4 * @link https://php.net/manual/en/image.constants.php#constant.gd-major-version */ define ('GD_MAJOR_VERSION', 2); /** * The GD minor version PHP was compiled against. * @since 5.2.4 * @link https://php.net/manual/en/image.constants.php#constant.gd-minor-version */ define ('GD_MINOR_VERSION', 0); /** * The GD release version PHP was compiled against. * @since 5.2.4 * @link https://php.net/manual/en/image.constants.php#constant.gd-release-version */ define ('GD_RELEASE_VERSION', 35); /** * The GD "extra" version (beta/rc..) PHP was compiled against. * @since 5.2.4 * @link https://php.net/manual/en/image.constants.php#constant.gd-extra-version */ define ('GD_EXTRA_VERSION', ""); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-no-filter */ define ('PNG_NO_FILTER', 0); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-none */ define ('PNG_FILTER_NONE', 8); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-sub */ define ('PNG_FILTER_SUB', 16); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-up */ define ('PNG_FILTER_UP', 32); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-avg */ define ('PNG_FILTER_AVG', 64); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-filter-paeth */ define ('PNG_FILTER_PAETH', 128); /** * A special PNG filter, used by the {@see imagepng()} function. * @link https://php.net/manual/en/image.constants.php#constant.png-all-filters */ define ('PNG_ALL_FILTERS', 248); /** * An affine transformation type constant used by the {@see imageaffinematrixget()} function. * @since 5.5 * @link https://php.net/manual/en/image.constants.php#constant.img-affine-translate */ define('IMG_AFFINE_TRANSLATE', 0); /** * An affine transformation type constant used by the {@see imageaffinematrixget()} function. * @since 5.5 * @link https://php.net/manual/en/image.constants.php#constant.img-affine-scale */ define('IMG_AFFINE_SCALE', 1); /** * An affine transformation type constant used by the {@see imageaffinematrixget()} function. * @since 5.5 * @link https://php.net/manual/en/image.constants.php#constant.img-affine-rotate */ define('IMG_AFFINE_ROTATE', 2); /** * An affine transformation type constant used by the {@see imageaffinematrixget()} function. * @since 5.5 * @link https://php.net/manual/en/image.constants.php#constant.img-affine-shear-horizontal */ define('IMG_AFFINE_SHEAR_HORIZONTAL', 3); /** * An affine transformation type constant used by the {@see imageaffinematrixget()} function. * @since 5.5 * @link https://php.net/manual/en/image.constants.php#constant.img-affine-shear-vertical */ define('IMG_AFFINE_SHEAR_VERTICAL', 4); /** * Same as {@see IMG_CROP_TRANSPARENT}. Before PHP 7.4.0, the bundled libgd fell back to * {@see IMG_CROP_SIDES}, if the image had no transparent color. * Used together with {@see imagecropauto()}. * @since 5.5 */ define('IMG_CROP_DEFAULT', 0); /** * Crops out a transparent background. * Used together with {@see imagecropauto()}. * @since 5.5 */ define('IMG_CROP_TRANSPARENT', 1); /** * Crops out a black background. * Used together with {@see imagecropauto()}. * @since 5.5 */ define('IMG_CROP_BLACK', 2); /** * Crops out a white background. * Used together with {@see imagecropauto()}. * @since 5.5 */ define('IMG_CROP_WHITE', 3); /** * Uses the 4 corners of the image to attempt to detect the background to crop. * Used together with {@see imagecropauto()}. * @since 5.5 */ define('IMG_CROP_SIDES', 4); /** * Crops an image using the given threshold and color. * Used together with {@see imagecropauto()}. * @since 5.5 */ define('IMG_CROP_THRESHOLD', 5); /** * Used together with {@see imageflip()} * @since 5.5 * @link https://php.net/manual/en/image.constants.php#constant.img-flip-both */ define('IMG_FLIP_BOTH', 3); /** * Used together with {@see imageflip()} * @since 5.5 * @link https://php.net/manual/en/image.constants.php#constant.img-flip-horizontal */ define('IMG_FLIP_HORIZONTAL', 1); /** * Used together with {@see imageflip()} * @since 5.5 * @link https://php.net/manual/en/image.constants.php#constant.img-flip-vertical */ define('IMG_FLIP_VERTICAL', 2); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-bell * @since 5.5 */ define('IMG_BELL', 1); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-bessel * @since 5.5 */ define('IMG_BESSEL', 2); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-bicubic * @since 5.5 */ define('IMG_BICUBIC', 4); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-bicubic-fixed * @since 5.5 */ define('IMG_BICUBIC_FIXED', 5); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-bilinear-fixed * @since 5.5 */ define('IMG_BILINEAR_FIXED', 3); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-blackman * @since 5.5 */ define('IMG_BLACKMAN', 6); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-box * @since 5.5 */ define('IMG_BOX', 7); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-bspline * @since 5.5 */ define('IMG_BSPLINE', 8); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-catmullrom * @since 5.5 */ define('IMG_CATMULLROM', 9); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-gaussian * @since 5.5 */ define('IMG_GAUSSIAN', 10); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-generalized-cubic * @since 5.5 */ define('IMG_GENERALIZED_CUBIC', 11); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-hermite * @since 5.5 */ define('IMG_HERMITE', 12); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-hamming * @since 5.5 */ define('IMG_HAMMING', 13); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-hanning * @since 5.5 */ define('IMG_HANNING', 14); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-mitchell * @since 5.5 */ define('IMG_MITCHELL', 15); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-power * @since 5.5 */ define('IMG_POWER', 17); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-quadratic * @since 5.5 */ define('IMG_QUADRATIC', 18); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-sinc * @since 5.5 */ define('IMG_SINC', 19); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-nearest-neighbour * @since 5.5 */ define('IMG_NEAREST_NEIGHBOUR', 16); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-weighted4 * @since 5.5 */ define('IMG_WEIGHTED4', 21); /** * Used together with {@see imagesetinterpolation()}. * @link https://php.net/manual/en/image.constants.php#constant.img-triangle * @since 5.5 */ define('IMG_TRIANGLE', 20); define('IMG_TGA', 128); /** * Return an image containing the affine tramsformed src image, using an optional clipping area * @link https://secure.php.net/manual/en/function.imageaffine.php * @param resource $imageAn image resource, returned by one of the image creation functions, * such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* @param array $affineArray with keys 0 to 5.
* @param array $clip [optional]Array with keys "x", "y", "width" and "height".
* @return resource|bool Return affined image resource on success or FALSE on failure. */ function imageaffine($image, $affine, $clip = null) {} /** * Concat two matrices (as in doing many ops in one go) * @link https://secure.php.net/manual/en/function.imageaffinematrixconcat.php * @param array $m1Array with keys 0 to 5.
* @param array $m2Array with keys 0 to 5.
* @return array|bool Array with keys 0 to 5 and float values or FALSE on failure. * @since 5.5 */ function imageaffinematrixconcat(array $m1, array $m2) {} /** * Return an image containing the affine tramsformed src image, using an optional clipping area * @link https://secure.php.net/manual/en/function.imageaffinematrixget.php * @param int $typeOne of IMG_AFFINE_* constants. * @param mixed $options [optional] * @return array|bool Array with keys 0 to 5 and float values or FALSE on failure. * @since 5.5 */ function imageaffinematrixget ($type, $options = null) {} /** * Crop an image using the given coordinates and size, x, y, width and height * @link https://secure.php.net/manual/en/function.imagecrop.php * @param resource $image
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}. *
* @param array $rectArray with keys "x", "y", "width" and "height".
* @return resource|bool Return cropped image resource on success or FALSE on failure. * @since 5.5 */ function imagecrop ($image, $rect) {} /** * Crop an image automatically using one of the available modes * @link https://secure.php.net/manual/en/function.imagecropauto.php * @param resource $image* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}. *
* @param int $mode [optional]* One of IMG_CROP_* constants. *
* @param float $threshold [optional]* Used IMG_CROP_THRESHOLD mode. *
* @param int $color [optional] ** Used in IMG_CROP_THRESHOLD mode. *
* @return resource|bool Return cropped image resource on success or FALSE on failure. * @since 5.5 */ function imagecropauto ($image, $mode = IMG_CROP_DEFAULT, $threshold = .5, $color = -1) {} /** * Flips an image using a given mode * @link https://secure.php.net/manual/en/function.imageflip.php * @param resource $image* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}. *
* @param int $mode* Flip mode, this can be one of the IMG_FLIP_* constants: *
*Constant | *Meaning | *
---|---|
IMG_FLIP_HORIZONTAL | ** Flips the image horizontally. * | *
IMG_FLIP_VERTICAL | ** Flips the image vertically. * | *
IMG_FLIP_BOTH | ** Flips the image both horizontally and vertically. * | *
* An image resource, returnd by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}. *
* @return bool Returns TRUE if the convertion was complete, or if the source image already is a true color image, otherwise FALSE is returned. * @since 5.5 */ function imagepalettetotruecolor ($image) {} /** * @since 5.5 * Scale an image using the given new width and height * @link https://secure.php.net/manual/en/function.imagescale.php * @param resource $image* An image resource, returnd by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}. *
* @param int $new_width * @param int $new_height [optional] * @param int $mode [optional] One of IMG_NEAREST_NEIGHBOUR, IMG_BILINEAR_FIXED, IMG_BICUBIC, IMG_BICUBIC_FIXED or anything else (will use two pass). * @return resource|bool Return scaled image resource on success or FALSE on failure. */ function imagescale ($image, $new_width, $new_height = -1, $mode = IMG_BILINEAR_FIXED) {} /** * Set the interpolation method * @link https://secure.php.net/manual/en/function.imagesetinterpolation.php * @param resource $image* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}. *
* @param int $method* The interpolation method, which can be one of the following: *