php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
gd.stub.php File Reference

Go to the source code of this file.

Data Structures

class  GdImage
 
class  GdFont
 

Functions

 gd_info ()
 
 imageloadfont (string $filename)
 
 imagesetstyle (GdImage $image, array $style)
 
 imagecreatetruecolor (int $width, int $height)
 
 imageistruecolor (GdImage $image)
 
 imagetruecolortopalette (GdImage $image, bool $dither, int $num_colors)
 
 imagepalettetotruecolor (GdImage $image)
 
 imagecolormatch (GdImage $image1, GdImage $image2)
 
 imagesetthickness (GdImage $image, int $thickness)
 
 imagefilledellipse (GdImage $image, int $center_x, int $center_y, int $width, int $height, int $color)
 
 imagefilledarc (GdImage $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color, int $style)
 
 imagealphablending (GdImage $image, bool $enable)
 
 imagesavealpha (GdImage $image, bool $enable)
 
 imagelayereffect (GdImage $image, int $effect)
 
 imagecolorallocatealpha (GdImage $image, int $red, int $green, int $blue, int $alpha)
 
 imagecolorresolvealpha (GdImage $image, int $red, int $green, int $blue, int $alpha)
 
 imagecolorclosestalpha (GdImage $image, int $red, int $green, int $blue, int $alpha)
 
 imagecolorexactalpha (GdImage $image, int $red, int $green, int $blue, int $alpha)
 
 imagecopyresampled (GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height)
 
 imagegrabwindow (int $handle, bool $client_area=false)
 
 imagegrabscreen ()
 
 imagerotate (GdImage $image, float $angle, int $background_color)
 
 imagesettile (GdImage $image, GdImage $tile)
 
 imagesetbrush (GdImage $image, GdImage $brush)
 
 imagecreate (int $width, int $height)
 
 imagetypes ()
 
 imagecreatefromstring (string $data)
 
 imagecreatefromavif (string $filename)
 
 imagecreatefromgif (string $filename)
 
 imagecreatefromjpeg (string $filename)
 
 imagecreatefrompng (string $filename)
 
 imagecreatefromwebp (string $filename)
 
 imagecreatefromxbm (string $filename)
 
 imagecreatefromxpm (string $filename)
 
 imagecreatefromwbmp (string $filename)
 
 imagecreatefromgd (string $filename)
 
 imagecreatefromgd2 (string $filename)
 
 imagecreatefromgd2part (string $filename, int $x, int $y, int $width, int $height)
 
 imagecreatefrombmp (string $filename)
 
 imagecreatefromtga (string $filename)
 
 imagexbm (GdImage $image, ?string $filename, ?int $foreground_color=null)
 
 imageavif (GdImage $image, $file=null, int $quality=-1, int $speed=-1)
 
 imagegif (GdImage $image, $file=null)
 
 imagepng (GdImage $image, $file=null, int $quality=-1, int $filters=-1)
 
 imagewebp (GdImage $image, $file=null, int $quality=-1)
 
 imagejpeg (GdImage $image, $file=null, int $quality=-1)
 
 imagewbmp (GdImage $image, $file=null, ?int $foreground_color=null)
 
 imagegd (GdImage $image, ?string $file=null)
 
 imagegd2 (GdImage $image, ?string $file=null, int $chunk_size=128, int $mode=IMG_GD2_RAW)
 
 imagebmp (GdImage $image, $file=null, bool $compressed=true)
 
 imagedestroy (GdImage $image)
 
 imagecolorallocate (GdImage $image, int $red, int $green, int $blue)
 
 imagepalettecopy (GdImage $dst, GdImage $src)
 
 imagecolorat (GdImage $image, int $x, int $y)
 
 imagecolorclosest (GdImage $image, int $red, int $green, int $blue)
 
 imagecolorclosesthwb (GdImage $image, int $red, int $green, int $blue)
 
 imagecolordeallocate (GdImage $image, int $color)
 
 imagecolorresolve (GdImage $image, int $red, int $green, int $blue)
 
 imagecolorexact (GdImage $image, int $red, int $green, int $blue)
 
 imagecolorset (GdImage $image, int $color, int $red, int $green, int $blue, int $alpha=0)
 
 imagecolorsforindex (GdImage $image, int $color)
 
 imagegammacorrect (GdImage $image, float $input_gamma, float $output_gamma)
 
 imagesetpixel (GdImage $image, int $x, int $y, int $color)
 
 imageline (GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color)
 
 imagedashedline (GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color)
 
 imagerectangle (GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color)
 
 imagefilledrectangle (GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color)
 
 imagearc (GdImage $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color)
 
 imageellipse (GdImage $image, int $center_x, int $center_y, int $width, int $height, int $color)
 
 imagefilltoborder (GdImage $image, int $x, int $y, int $border_color, int $color)
 
 imagefill (GdImage $image, int $x, int $y, int $color)
 
 imagecolorstotal (GdImage $image)
 
 imagecolortransparent (GdImage $image, ?int $color=null)
 
 imageinterlace (GdImage $image, ?bool $enable=null)
 
 imagepolygon (GdImage $image, array $points, int $num_points_or_color, ?int $color=null)
 
 imageopenpolygon (GdImage $image, array $points, int $num_points_or_color, ?int $color=null)
 
 imagefilledpolygon (GdImage $image, array $points, int $num_points_or_color, ?int $color=null)
 
 imagefontwidth (GdFont|int $font)
 
 imagefontheight (GdFont|int $font)
 
 imagechar (GdImage $image, GdFont|int $font, int $x, int $y, string $char, int $color)
 
 imagecharup (GdImage $image, GdFont|int $font, int $x, int $y, string $char, int $color)
 
 imagestring (GdImage $image, GdFont|int $font, int $x, int $y, string $string, int $color)
 
 imagestringup (GdImage $image, GdFont|int $font, int $x, int $y, string $string, int $color)
 
 imagecopy (GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height)
 
 imagecopymerge (GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct)
 
 imagecopymergegray (GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct)
 
 imagecopyresized (GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height)
 
 imagesx (GdImage $image)
 
 imagesy (GdImage $image)
 
 imagesetclip (GdImage $image, int $x1, int $y1, int $x2, int $y2)
 
 imagegetclip (GdImage $image)
 
 imageftbbox (float $size, float $angle, string $font_filename, string $string, array $options=[])
 
 imagefttext (GdImage $image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options=[])
 
 imagettfbbox (float $size, float $angle, string $font_filename, string $string, array $options=[])
 
 imagettftext (GdImage $image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options=[])
 
 imagefilter (GdImage $image, int $filter,... $args)
 
 imageconvolution (GdImage $image, array $matrix, float $divisor, float $offset)
 
 imageflip (GdImage $image, int $mode)
 
 imageantialias (GdImage $image, bool $enable)
 
 imagecrop (GdImage $image, array $rectangle)
 
 imagecropauto (GdImage $image, int $mode=IMG_CROP_DEFAULT, float $threshold=0.5, int $color=-1)
 
 imagescale (GdImage $image, int $width, int $height=-1, int $mode=IMG_BILINEAR_FIXED)
 
 imageaffine (GdImage $image, array $affine, ?array $clip=null)
 
 imageaffinematrixget (int $type, $options)
 
 imageaffinematrixconcat (array $matrix1, array $matrix2)
 
 imagegetinterpolation (GdImage $image)
 
 imagesetinterpolation (GdImage $image, int $method=IMG_BILINEAR_FIXED)
 
 imageresolution (GdImage $image, ?int $resolution_x=null, ?int $resolution_y=null)
 

Variables

const IMG_AVIF = UNKNOWN
 
const IMG_GIF = UNKNOWN
 
const IMG_JPG = UNKNOWN
 
const IMG_JPEG = UNKNOWN
 
const IMG_PNG = UNKNOWN
 
const IMG_WBMP = UNKNOWN
 
const IMG_XPM = UNKNOWN
 
const IMG_WEBP = UNKNOWN
 
const IMG_BMP = UNKNOWN
 
const IMG_TGA = UNKNOWN
 
const IMG_WEBP_LOSSLESS = UNKNOWN
 
const IMG_COLOR_TILED = UNKNOWN
 
const IMG_COLOR_STYLED = UNKNOWN
 
const IMG_COLOR_BRUSHED = UNKNOWN
 
const IMG_COLOR_STYLEDBRUSHED = UNKNOWN
 
const IMG_COLOR_TRANSPARENT = UNKNOWN
 
const IMG_ARC_ROUNDED = UNKNOWN
 
const IMG_ARC_PIE = UNKNOWN
 
const IMG_ARC_CHORD = UNKNOWN
 
const IMG_ARC_NOFILL = UNKNOWN
 
const IMG_ARC_EDGED = UNKNOWN
 
const IMG_GD2_RAW = UNKNOWN
 
const IMG_GD2_COMPRESSED = UNKNOWN
 
const IMG_FLIP_HORIZONTAL = UNKNOWN
 
const IMG_FLIP_VERTICAL = UNKNOWN
 
const IMG_FLIP_BOTH = UNKNOWN
 
const IMG_EFFECT_REPLACE = UNKNOWN
 
const IMG_EFFECT_ALPHABLEND = UNKNOWN
 
const IMG_EFFECT_NORMAL = UNKNOWN
 
const IMG_EFFECT_OVERLAY = UNKNOWN
 
const IMG_EFFECT_MULTIPLY = UNKNOWN
 
const IMG_CROP_DEFAULT = UNKNOWN
 
const IMG_CROP_TRANSPARENT = UNKNOWN
 
const IMG_CROP_BLACK = UNKNOWN
 
const IMG_CROP_WHITE = UNKNOWN
 
const IMG_CROP_SIDES = UNKNOWN
 
const IMG_CROP_THRESHOLD = UNKNOWN
 
const IMG_BELL = UNKNOWN
 
const IMG_BESSEL = UNKNOWN
 
const IMG_BILINEAR_FIXED = UNKNOWN
 
const IMG_BICUBIC = UNKNOWN
 
const IMG_BICUBIC_FIXED = UNKNOWN
 
const IMG_BLACKMAN = UNKNOWN
 
const IMG_BOX = UNKNOWN
 
const IMG_BSPLINE = UNKNOWN
 
const IMG_CATMULLROM = UNKNOWN
 
const IMG_GAUSSIAN = UNKNOWN
 
const IMG_GENERALIZED_CUBIC = UNKNOWN
 
const IMG_HERMITE = UNKNOWN
 
const IMG_HAMMING = UNKNOWN
 
const IMG_HANNING = UNKNOWN
 
const IMG_MITCHELL = UNKNOWN
 
const IMG_POWER = UNKNOWN
 
const IMG_QUADRATIC = UNKNOWN
 
const IMG_SINC = UNKNOWN
 
const IMG_NEAREST_NEIGHBOUR = UNKNOWN
 
const IMG_WEIGHTED4 = UNKNOWN
 
const IMG_TRIANGLE = UNKNOWN
 
const IMG_AFFINE_TRANSLATE = UNKNOWN
 
const IMG_AFFINE_SCALE = UNKNOWN
 
const IMG_AFFINE_ROTATE = UNKNOWN
 
const IMG_AFFINE_SHEAR_HORIZONTAL = UNKNOWN
 
const IMG_AFFINE_SHEAR_VERTICAL = UNKNOWN
 
const GD_BUNDLED = UNKNOWN
 
const IMG_FILTER_NEGATE = UNKNOWN
 
const IMG_FILTER_GRAYSCALE = UNKNOWN
 
const IMG_FILTER_BRIGHTNESS = UNKNOWN
 
const IMG_FILTER_CONTRAST = UNKNOWN
 
const IMG_FILTER_COLORIZE = UNKNOWN
 
const IMG_FILTER_EDGEDETECT = UNKNOWN
 
const IMG_FILTER_GAUSSIAN_BLUR = UNKNOWN
 
const IMG_FILTER_SELECTIVE_BLUR = UNKNOWN
 
const IMG_FILTER_EMBOSS = UNKNOWN
 
const IMG_FILTER_MEAN_REMOVAL = UNKNOWN
 
const IMG_FILTER_SMOOTH = UNKNOWN
 
const IMG_FILTER_PIXELATE = UNKNOWN
 
const IMG_FILTER_SCATTER = UNKNOWN
 
const GD_VERSION = UNKNOWN
 
const GD_MAJOR_VERSION = UNKNOWN
 
const GD_MINOR_VERSION = UNKNOWN
 
const GD_RELEASE_VERSION = UNKNOWN
 
const GD_EXTRA_VERSION = UNKNOWN
 
const PNG_NO_FILTER = 0x00
 
const PNG_FILTER_NONE = 0x08
 
const PNG_FILTER_SUB = 0x10
 
const PNG_FILTER_UP = 0x20
 
const PNG_FILTER_AVG = 0x40
 
const PNG_FILTER_PAETH = 0x80
 
const PNG_ALL_FILTERS = 0x08 | 0x10 | 0x20 | 0x40 | 0x80
 

Function Documentation

◆ gd_info()

gd_info ( )
Returns
array<string, string|bool> @refcount 1

Definition at line 484 of file gd.stub.php.

◆ imageaffine()

imageaffine ( GdImage $image,
array $affine,
?array $clip = null )

@refcount 1

Definition at line 773 of file gd.stub.php.

◆ imageaffinematrixconcat()

imageaffinematrixconcat ( array $matrix1,
array $matrix2 )
Returns
array<int, float>|false @refcount 1

Definition at line 786 of file gd.stub.php.

◆ imageaffinematrixget()

imageaffinematrixget ( int $type,
$options )
Parameters
array | float$options@refcount 1
Returns
array<int, float>|false

Definition at line 780 of file gd.stub.php.

◆ imagealphablending()

imagealphablending ( GdImage $image,
bool $enable )

Definition at line 507 of file gd.stub.php.

◆ imageantialias()

imageantialias ( GdImage $image,
bool $enable )

Definition at line 761 of file gd.stub.php.

◆ imagearc()

imagearc ( GdImage $image,
int $center_x,
int $center_y,
int $width,
int $height,
int $start_angle,
int $end_angle,
int $color )

Definition at line 676 of file gd.stub.php.

◆ imageavif()

imageavif ( GdImage $image,
$file = null,
int $quality = -1,
int $speed = -1 )
Parameters
resource | string | null$file

Definition at line 605 of file gd.stub.php.

◆ imagebmp()

imagebmp ( GdImage $image,
$file = null,
bool $compressed = true )
Parameters
resource | string | null$file

Definition at line 635 of file gd.stub.php.

◆ imagechar()

imagechar ( GdImage $image,
GdFont|int $font,
int $x,
int $y,
string $char,
int $color )

Definition at line 700 of file gd.stub.php.

◆ imagecharup()

imagecharup ( GdImage $image,
GdFont|int $font,
int $x,
int $y,
string $char,
int $color )

Definition at line 702 of file gd.stub.php.

◆ imagecolorallocate()

imagecolorallocate ( GdImage $image,
int $red,
int $green,
int $blue )

Definition at line 640 of file gd.stub.php.

◆ imagecolorallocatealpha()

imagecolorallocatealpha ( GdImage $image,
int $red,
int $green,
int $blue,
int $alpha )

Definition at line 513 of file gd.stub.php.

◆ imagecolorat()

imagecolorat ( GdImage $image,
int $x,
int $y )

Definition at line 644 of file gd.stub.php.

◆ imagecolorclosest()

imagecolorclosest ( GdImage $image,
int $red,
int $green,
int $blue )

Definition at line 646 of file gd.stub.php.

◆ imagecolorclosestalpha()

imagecolorclosestalpha ( GdImage $image,
int $red,
int $green,
int $blue,
int $alpha )

Definition at line 517 of file gd.stub.php.

◆ imagecolorclosesthwb()

imagecolorclosesthwb ( GdImage $image,
int $red,
int $green,
int $blue )

Definition at line 648 of file gd.stub.php.

◆ imagecolordeallocate()

imagecolordeallocate ( GdImage $image,
int $color )

Definition at line 650 of file gd.stub.php.

◆ imagecolorexact()

imagecolorexact ( GdImage $image,
int $red,
int $green,
int $blue )

Definition at line 654 of file gd.stub.php.

◆ imagecolorexactalpha()

imagecolorexactalpha ( GdImage $image,
int $red,
int $green,
int $blue,
int $alpha )

Definition at line 519 of file gd.stub.php.

◆ imagecolormatch()

imagecolormatch ( GdImage $image1,
GdImage $image2 )

Definition at line 499 of file gd.stub.php.

◆ imagecolorresolve()

imagecolorresolve ( GdImage $image,
int $red,
int $green,
int $blue )

Definition at line 652 of file gd.stub.php.

◆ imagecolorresolvealpha()

imagecolorresolvealpha ( GdImage $image,
int $red,
int $green,
int $blue,
int $alpha )

Definition at line 515 of file gd.stub.php.

◆ imagecolorset()

imagecolorset ( GdImage $image,
int $color,
int $red,
int $green,
int $blue,
int $alpha = 0 )

Definition at line 656 of file gd.stub.php.

◆ imagecolorsforindex()

imagecolorsforindex ( GdImage $image,
int $color )
Returns
array<string, int> @refcount 1

Definition at line 662 of file gd.stub.php.

◆ imagecolorstotal()

imagecolorstotal ( GdImage $image)

Definition at line 684 of file gd.stub.php.

◆ imagecolortransparent()

imagecolortransparent ( GdImage $image,
?int $color = null )

Definition at line 686 of file gd.stub.php.

◆ imageconvolution()

imageconvolution ( GdImage $image,
array $matrix,
float $divisor,
float $offset )

Definition at line 757 of file gd.stub.php.

◆ imagecopy()

imagecopy ( GdImage $dst_image,
GdImage $src_image,
int $dst_x,
int $dst_y,
int $src_x,
int $src_y,
int $src_width,
int $src_height )

Definition at line 708 of file gd.stub.php.

◆ imagecopymerge()

imagecopymerge ( GdImage $dst_image,
GdImage $src_image,
int $dst_x,
int $dst_y,
int $src_x,
int $src_y,
int $src_width,
int $src_height,
int $pct )

Definition at line 710 of file gd.stub.php.

◆ imagecopymergegray()

imagecopymergegray ( GdImage $dst_image,
GdImage $src_image,
int $dst_x,
int $dst_y,
int $src_x,
int $src_y,
int $src_width,
int $src_height,
int $pct )

Definition at line 712 of file gd.stub.php.

◆ imagecopyresampled()

imagecopyresampled ( GdImage $dst_image,
GdImage $src_image,
int $dst_x,
int $dst_y,
int $src_x,
int $src_y,
int $dst_width,
int $dst_height,
int $src_width,
int $src_height )

Definition at line 521 of file gd.stub.php.

◆ imagecopyresized()

imagecopyresized ( GdImage $dst_image,
GdImage $src_image,
int $dst_x,
int $dst_y,
int $src_x,
int $src_y,
int $dst_width,
int $dst_height,
int $src_width,
int $src_height )

Definition at line 714 of file gd.stub.php.

◆ imagecreate()

imagecreate ( int $width,
int $height )

@refcount 1

Definition at line 541 of file gd.stub.php.

◆ imagecreatefromavif()

imagecreatefromavif ( string $filename)

@refcount 1

Definition at line 551 of file gd.stub.php.

◆ imagecreatefrombmp()

imagecreatefrombmp ( string $filename)

@refcount 1

Definition at line 594 of file gd.stub.php.

◆ imagecreatefromgd()

imagecreatefromgd ( string $filename)

@refcount 1

Definition at line 584 of file gd.stub.php.

◆ imagecreatefromgd2()

imagecreatefromgd2 ( string $filename)

@refcount 1

Definition at line 587 of file gd.stub.php.

◆ imagecreatefromgd2part()

imagecreatefromgd2part ( string $filename,
int $x,
int $y,
int $width,
int $height )

@refcount 1

Definition at line 590 of file gd.stub.php.

◆ imagecreatefromgif()

imagecreatefromgif ( string $filename)

@refcount 1

Definition at line 555 of file gd.stub.php.

◆ imagecreatefromjpeg()

imagecreatefromjpeg ( string $filename)

@refcount 1

Definition at line 559 of file gd.stub.php.

◆ imagecreatefrompng()

imagecreatefrompng ( string $filename)

@refcount 1

Definition at line 564 of file gd.stub.php.

◆ imagecreatefromstring()

imagecreatefromstring ( string $data)

@refcount 1

Definition at line 547 of file gd.stub.php.

◆ imagecreatefromtga()

imagecreatefromtga ( string $filename)

Definition at line 598 of file gd.stub.php.

◆ imagecreatefromwbmp()

imagecreatefromwbmp ( string $filename)

@refcount 1

Definition at line 581 of file gd.stub.php.

◆ imagecreatefromwebp()

imagecreatefromwebp ( string $filename)

@refcount 1

Definition at line 569 of file gd.stub.php.

◆ imagecreatefromxbm()

imagecreatefromxbm ( string $filename)

@refcount 1

Definition at line 573 of file gd.stub.php.

◆ imagecreatefromxpm()

imagecreatefromxpm ( string $filename)

@refcount 1

Definition at line 577 of file gd.stub.php.

◆ imagecreatetruecolor()

imagecreatetruecolor ( int $width,
int $height )

@refcount 1

Definition at line 491 of file gd.stub.php.

◆ imagecrop()

imagecrop ( GdImage $image,
array $rectangle )

@refcount 1

Definition at line 764 of file gd.stub.php.

◆ imagecropauto()

imagecropauto ( GdImage $image,
int $mode = IMG_CROP_DEFAULT,
float $threshold = 0.5,
int $color = -1 )

@refcount 1

Definition at line 767 of file gd.stub.php.

◆ imagedashedline()

imagedashedline ( GdImage $image,
int $x1,
int $y1,
int $x2,
int $y2,
int $color )

Definition at line 670 of file gd.stub.php.

◆ imagedestroy()

imagedestroy ( GdImage $image)

Definition at line 638 of file gd.stub.php.

◆ imageellipse()

imageellipse ( GdImage $image,
int $center_x,
int $center_y,
int $width,
int $height,
int $color )

Definition at line 678 of file gd.stub.php.

◆ imagefill()

imagefill ( GdImage $image,
int $x,
int $y,
int $color )

Definition at line 682 of file gd.stub.php.

◆ imagefilledarc()

imagefilledarc ( GdImage $image,
int $center_x,
int $center_y,
int $width,
int $height,
int $start_angle,
int $end_angle,
int $color,
int $style )

Definition at line 505 of file gd.stub.php.

◆ imagefilledellipse()

imagefilledellipse ( GdImage $image,
int $center_x,
int $center_y,
int $width,
int $height,
int $color )

Definition at line 503 of file gd.stub.php.

◆ imagefilledpolygon()

imagefilledpolygon ( GdImage $image,
array $points,
int $num_points_or_color,
?int $color = null )

Definition at line 694 of file gd.stub.php.

◆ imagefilledrectangle()

imagefilledrectangle ( GdImage $image,
int $x1,
int $y1,
int $x2,
int $y2,
int $color )

Definition at line 674 of file gd.stub.php.

◆ imagefilltoborder()

imagefilltoborder ( GdImage $image,
int $x,
int $y,
int $border_color,
int $color )

Definition at line 680 of file gd.stub.php.

◆ imagefilter()

imagefilter ( GdImage $image,
int $filter,
... )
Parameters
array | int | float | bool$args

Definition at line 755 of file gd.stub.php.

◆ imageflip()

imageflip ( GdImage $image,
int $mode )

Definition at line 759 of file gd.stub.php.

◆ imagefontheight()

imagefontheight ( GdFont|int $font)

Definition at line 698 of file gd.stub.php.

◆ imagefontwidth()

imagefontwidth ( GdFont|int $font)

Definition at line 696 of file gd.stub.php.

◆ imageftbbox()

imageftbbox ( float $size,
float $angle,
string $font_filename,
string $string,
array $options = [] )
Returns
array<int, int>|false @refcount 1

Definition at line 733 of file gd.stub.php.

◆ imagefttext()

imagefttext ( GdImage $image,
float $size,
float $angle,
int $x,
int $y,
int $color,
string $font_filename,
string $text,
array $options = [] )
Returns
array<int, int>|false @refcount 1

Definition at line 739 of file gd.stub.php.

◆ imagegammacorrect()

imagegammacorrect ( GdImage $image,
float $input_gamma,
float $output_gamma )

Definition at line 664 of file gd.stub.php.

◆ imagegd()

imagegd ( GdImage $image,
?string $file = null )

Definition at line 629 of file gd.stub.php.

◆ imagegd2()

imagegd2 ( GdImage $image,
?string $file = null,
int $chunk_size = 128,
int $mode = IMG_GD2_RAW )

Definition at line 631 of file gd.stub.php.

◆ imagegetclip()

imagegetclip ( GdImage $image)
Returns
array<int, int> @refcount 1

Definition at line 726 of file gd.stub.php.

◆ imagegetinterpolation()

imagegetinterpolation ( GdImage $image)

Definition at line 788 of file gd.stub.php.

◆ imagegif()

imagegif ( GdImage $image,
$file = null )
Parameters
resource | string | null$file

Definition at line 609 of file gd.stub.php.

◆ imagegrabscreen()

imagegrabscreen ( )

@refcount 1

Definition at line 529 of file gd.stub.php.

◆ imagegrabwindow()

imagegrabwindow ( int $handle,
bool $client_area = false )

@refcount 1

Definition at line 526 of file gd.stub.php.

◆ imageinterlace()

imageinterlace ( GdImage $image,
?bool $enable = null )

Definition at line 688 of file gd.stub.php.

◆ imageistruecolor()

imageistruecolor ( GdImage $image)

Definition at line 493 of file gd.stub.php.

◆ imagejpeg()

imagejpeg ( GdImage $image,
$file = null,
int $quality = -1 )
Parameters
resource | string | null$file

Definition at line 623 of file gd.stub.php.

◆ imagelayereffect()

imagelayereffect ( GdImage $image,
int $effect )

Definition at line 511 of file gd.stub.php.

◆ imageline()

imageline ( GdImage $image,
int $x1,
int $y1,
int $x2,
int $y2,
int $color )

Definition at line 668 of file gd.stub.php.

◆ imageloadfont()

imageloadfont ( string $filename)

Definition at line 486 of file gd.stub.php.

◆ imageopenpolygon()

imageopenpolygon ( GdImage $image,
array $points,
int $num_points_or_color,
?int $color = null )

Definition at line 692 of file gd.stub.php.

◆ imagepalettecopy()

imagepalettecopy ( GdImage $dst,
GdImage $src )

Definition at line 642 of file gd.stub.php.

◆ imagepalettetotruecolor()

imagepalettetotruecolor ( GdImage $image)

Definition at line 497 of file gd.stub.php.

◆ imagepng()

imagepng ( GdImage $image,
$file = null,
int $quality = -1,
int $filters = -1 )
Parameters
resource | string | null$file

Definition at line 613 of file gd.stub.php.

◆ imagepolygon()

imagepolygon ( GdImage $image,
array $points,
int $num_points_or_color,
?int $color = null )

Definition at line 690 of file gd.stub.php.

◆ imagerectangle()

imagerectangle ( GdImage $image,
int $x1,
int $y1,
int $x2,
int $y2,
int $color )

Definition at line 672 of file gd.stub.php.

◆ imageresolution()

imageresolution ( GdImage $image,
?int $resolution_x = null,
?int $resolution_y = null )
Returns
array<int, int>|true @refcount 1

Definition at line 796 of file gd.stub.php.

◆ imagerotate()

imagerotate ( GdImage $image,
float $angle,
int $background_color )

@refcount 1

Definition at line 534 of file gd.stub.php.

◆ imagesavealpha()

imagesavealpha ( GdImage $image,
bool $enable )

Definition at line 509 of file gd.stub.php.

◆ imagescale()

imagescale ( GdImage $image,
int $width,
int $height = -1,
int $mode = IMG_BILINEAR_FIXED )

@refcount 1

Definition at line 770 of file gd.stub.php.

◆ imagesetbrush()

imagesetbrush ( GdImage $image,
GdImage $brush )

Definition at line 538 of file gd.stub.php.

◆ imagesetclip()

imagesetclip ( GdImage $image,
int $x1,
int $y1,
int $x2,
int $y2 )

Definition at line 720 of file gd.stub.php.

◆ imagesetinterpolation()

imagesetinterpolation ( GdImage $image,
int $method = IMG_BILINEAR_FIXED )

Definition at line 790 of file gd.stub.php.

◆ imagesetpixel()

imagesetpixel ( GdImage $image,
int $x,
int $y,
int $color )

Definition at line 666 of file gd.stub.php.

◆ imagesetstyle()

imagesetstyle ( GdImage $image,
array $style )

Definition at line 488 of file gd.stub.php.

◆ imagesetthickness()

imagesetthickness ( GdImage $image,
int $thickness )

Definition at line 501 of file gd.stub.php.

◆ imagesettile()

imagesettile ( GdImage $image,
GdImage $tile )

Definition at line 536 of file gd.stub.php.

◆ imagestring()

imagestring ( GdImage $image,
GdFont|int $font,
int $x,
int $y,
string $string,
int $color )

Definition at line 704 of file gd.stub.php.

◆ imagestringup()

imagestringup ( GdImage $image,
GdFont|int $font,
int $x,
int $y,
string $string,
int $color )

Definition at line 706 of file gd.stub.php.

◆ imagesx()

imagesx ( GdImage $image)

Definition at line 716 of file gd.stub.php.

◆ imagesy()

imagesy ( GdImage $image)

Definition at line 718 of file gd.stub.php.

◆ imagetruecolortopalette()

imagetruecolortopalette ( GdImage $image,
bool $dither,
int $num_colors )

Definition at line 495 of file gd.stub.php.

◆ imagettfbbox()

imagettfbbox ( float $size,
float $angle,
string $font_filename,
string $string,
array $options = [] )
Returns
array<int, int>|false @alias imageftbbox

Definition at line 745 of file gd.stub.php.

◆ imagettftext()

imagettftext ( GdImage $image,
float $size,
float $angle,
int $x,
int $y,
int $color,
string $font_filename,
string $text,
array $options = [] )
Returns
array<int, int>|false @alias imagefttext

Definition at line 751 of file gd.stub.php.

◆ imagetypes()

imagetypes ( )

@compile-time-eval

Definition at line 544 of file gd.stub.php.

◆ imagewbmp()

imagewbmp ( GdImage $image,
$file = null,
?int $foreground_color = null )
Parameters
resource | string | null$file

Definition at line 627 of file gd.stub.php.

◆ imagewebp()

imagewebp ( GdImage $image,
$file = null,
int $quality = -1 )
Parameters
resource | string | null$file

Definition at line 618 of file gd.stub.php.

◆ imagexbm()

imagexbm ( GdImage $image,
?string $filename,
?int $foreground_color = null )

Definition at line 601 of file gd.stub.php.

Variable Documentation

◆ GD_BUNDLED

const GD_BUNDLED = UNKNOWN

Definition at line 345 of file gd.stub.php.

◆ GD_EXTRA_VERSION

const GD_EXTRA_VERSION = UNKNOWN

Definition at line 443 of file gd.stub.php.

◆ GD_MAJOR_VERSION

const GD_MAJOR_VERSION = UNKNOWN

Definition at line 428 of file gd.stub.php.

◆ GD_MINOR_VERSION

const GD_MINOR_VERSION = UNKNOWN

Definition at line 433 of file gd.stub.php.

◆ GD_RELEASE_VERSION

const GD_RELEASE_VERSION = UNKNOWN

Definition at line 438 of file gd.stub.php.

◆ GD_VERSION

const GD_VERSION = UNKNOWN

Definition at line 420 of file gd.stub.php.

◆ IMG_AFFINE_ROTATE

const IMG_AFFINE_ROTATE = UNKNOWN

Definition at line 329 of file gd.stub.php.

◆ IMG_AFFINE_SCALE

const IMG_AFFINE_SCALE = UNKNOWN

Definition at line 324 of file gd.stub.php.

◆ IMG_AFFINE_SHEAR_HORIZONTAL

const IMG_AFFINE_SHEAR_HORIZONTAL = UNKNOWN

Definition at line 334 of file gd.stub.php.

◆ IMG_AFFINE_SHEAR_VERTICAL

const IMG_AFFINE_SHEAR_VERTICAL = UNKNOWN

Definition at line 339 of file gd.stub.php.

◆ IMG_AFFINE_TRANSLATE

const IMG_AFFINE_TRANSLATE = UNKNOWN

Definition at line 319 of file gd.stub.php.

◆ IMG_ARC_CHORD

const IMG_ARC_CHORD = UNKNOWN

Definition at line 110 of file gd.stub.php.

◆ IMG_ARC_EDGED

const IMG_ARC_EDGED = UNKNOWN

Definition at line 120 of file gd.stub.php.

◆ IMG_ARC_NOFILL

const IMG_ARC_NOFILL = UNKNOWN

Definition at line 115 of file gd.stub.php.

◆ IMG_ARC_PIE

const IMG_ARC_PIE = UNKNOWN

Definition at line 105 of file gd.stub.php.

◆ IMG_ARC_ROUNDED

const IMG_ARC_ROUNDED = UNKNOWN

Definition at line 100 of file gd.stub.php.

◆ IMG_AVIF

const IMG_AVIF = UNKNOWN

Definition at line 9 of file gd.stub.php.

◆ IMG_BELL

const IMG_BELL = UNKNOWN

Definition at line 213 of file gd.stub.php.

◆ IMG_BESSEL

const IMG_BESSEL = UNKNOWN

Definition at line 218 of file gd.stub.php.

◆ IMG_BICUBIC

const IMG_BICUBIC = UNKNOWN

Definition at line 228 of file gd.stub.php.

◆ IMG_BICUBIC_FIXED

const IMG_BICUBIC_FIXED = UNKNOWN

Definition at line 233 of file gd.stub.php.

◆ IMG_BILINEAR_FIXED

const IMG_BILINEAR_FIXED = UNKNOWN

Definition at line 223 of file gd.stub.php.

◆ IMG_BLACKMAN

const IMG_BLACKMAN = UNKNOWN

Definition at line 238 of file gd.stub.php.

◆ IMG_BMP

const IMG_BMP = UNKNOWN

Definition at line 49 of file gd.stub.php.

◆ IMG_BOX

const IMG_BOX = UNKNOWN

Definition at line 243 of file gd.stub.php.

◆ IMG_BSPLINE

const IMG_BSPLINE = UNKNOWN

Definition at line 248 of file gd.stub.php.

◆ IMG_CATMULLROM

const IMG_CATMULLROM = UNKNOWN

Definition at line 253 of file gd.stub.php.

◆ IMG_COLOR_BRUSHED

const IMG_COLOR_BRUSHED = UNKNOWN

Definition at line 82 of file gd.stub.php.

◆ IMG_COLOR_STYLED

const IMG_COLOR_STYLED = UNKNOWN

Definition at line 77 of file gd.stub.php.

◆ IMG_COLOR_STYLEDBRUSHED

const IMG_COLOR_STYLEDBRUSHED = UNKNOWN

Definition at line 87 of file gd.stub.php.

◆ IMG_COLOR_TILED

const IMG_COLOR_TILED = UNKNOWN

Definition at line 72 of file gd.stub.php.

◆ IMG_COLOR_TRANSPARENT

const IMG_COLOR_TRANSPARENT = UNKNOWN

Definition at line 92 of file gd.stub.php.

◆ IMG_CROP_BLACK

const IMG_CROP_BLACK = UNKNOWN

Definition at line 192 of file gd.stub.php.

◆ IMG_CROP_DEFAULT

const IMG_CROP_DEFAULT = UNKNOWN

Definition at line 182 of file gd.stub.php.

◆ IMG_CROP_SIDES

const IMG_CROP_SIDES = UNKNOWN

Definition at line 202 of file gd.stub.php.

◆ IMG_CROP_THRESHOLD

const IMG_CROP_THRESHOLD = UNKNOWN

Definition at line 207 of file gd.stub.php.

◆ IMG_CROP_TRANSPARENT

const IMG_CROP_TRANSPARENT = UNKNOWN

Definition at line 187 of file gd.stub.php.

◆ IMG_CROP_WHITE

const IMG_CROP_WHITE = UNKNOWN

Definition at line 197 of file gd.stub.php.

◆ IMG_EFFECT_ALPHABLEND

const IMG_EFFECT_ALPHABLEND = UNKNOWN

Definition at line 158 of file gd.stub.php.

◆ IMG_EFFECT_MULTIPLY

const IMG_EFFECT_MULTIPLY = UNKNOWN

Definition at line 175 of file gd.stub.php.

◆ IMG_EFFECT_NORMAL

const IMG_EFFECT_NORMAL = UNKNOWN

Definition at line 163 of file gd.stub.php.

◆ IMG_EFFECT_OVERLAY

const IMG_EFFECT_OVERLAY = UNKNOWN

Definition at line 168 of file gd.stub.php.

◆ IMG_EFFECT_REPLACE

const IMG_EFFECT_REPLACE = UNKNOWN

Definition at line 153 of file gd.stub.php.

◆ IMG_FILTER_BRIGHTNESS

const IMG_FILTER_BRIGHTNESS = UNKNOWN

Definition at line 363 of file gd.stub.php.

◆ IMG_FILTER_COLORIZE

const IMG_FILTER_COLORIZE = UNKNOWN

Definition at line 373 of file gd.stub.php.

◆ IMG_FILTER_CONTRAST

const IMG_FILTER_CONTRAST = UNKNOWN

Definition at line 368 of file gd.stub.php.

◆ IMG_FILTER_EDGEDETECT

const IMG_FILTER_EDGEDETECT = UNKNOWN

Definition at line 378 of file gd.stub.php.

◆ IMG_FILTER_EMBOSS

const IMG_FILTER_EMBOSS = UNKNOWN

Definition at line 393 of file gd.stub.php.

◆ IMG_FILTER_GAUSSIAN_BLUR

const IMG_FILTER_GAUSSIAN_BLUR = UNKNOWN

Definition at line 383 of file gd.stub.php.

◆ IMG_FILTER_GRAYSCALE

const IMG_FILTER_GRAYSCALE = UNKNOWN

Definition at line 358 of file gd.stub.php.

◆ IMG_FILTER_MEAN_REMOVAL

const IMG_FILTER_MEAN_REMOVAL = UNKNOWN

Definition at line 398 of file gd.stub.php.

◆ IMG_FILTER_NEGATE

const IMG_FILTER_NEGATE = UNKNOWN

Definition at line 353 of file gd.stub.php.

◆ IMG_FILTER_PIXELATE

const IMG_FILTER_PIXELATE = UNKNOWN

Definition at line 408 of file gd.stub.php.

◆ IMG_FILTER_SCATTER

const IMG_FILTER_SCATTER = UNKNOWN

Definition at line 413 of file gd.stub.php.

◆ IMG_FILTER_SELECTIVE_BLUR

const IMG_FILTER_SELECTIVE_BLUR = UNKNOWN

Definition at line 388 of file gd.stub.php.

◆ IMG_FILTER_SMOOTH

const IMG_FILTER_SMOOTH = UNKNOWN

Definition at line 403 of file gd.stub.php.

◆ IMG_FLIP_BOTH

const IMG_FLIP_BOTH = UNKNOWN

Definition at line 148 of file gd.stub.php.

◆ IMG_FLIP_HORIZONTAL

const IMG_FLIP_HORIZONTAL = UNKNOWN

Definition at line 138 of file gd.stub.php.

◆ IMG_FLIP_VERTICAL

const IMG_FLIP_VERTICAL = UNKNOWN

Definition at line 143 of file gd.stub.php.

◆ IMG_GAUSSIAN

const IMG_GAUSSIAN = UNKNOWN

Definition at line 258 of file gd.stub.php.

◆ IMG_GD2_COMPRESSED

const IMG_GD2_COMPRESSED = UNKNOWN

Definition at line 133 of file gd.stub.php.

◆ IMG_GD2_RAW

const IMG_GD2_RAW = UNKNOWN

Definition at line 128 of file gd.stub.php.

◆ IMG_GENERALIZED_CUBIC

const IMG_GENERALIZED_CUBIC = UNKNOWN

Definition at line 263 of file gd.stub.php.

◆ IMG_GIF

const IMG_GIF = UNKNOWN

Definition at line 14 of file gd.stub.php.

◆ IMG_HAMMING

const IMG_HAMMING = UNKNOWN

Definition at line 273 of file gd.stub.php.

◆ IMG_HANNING

const IMG_HANNING = UNKNOWN

Definition at line 278 of file gd.stub.php.

◆ IMG_HERMITE

const IMG_HERMITE = UNKNOWN

Definition at line 268 of file gd.stub.php.

◆ IMG_JPEG

const IMG_JPEG = UNKNOWN

Definition at line 24 of file gd.stub.php.

◆ IMG_JPG

const IMG_JPG = UNKNOWN

Definition at line 19 of file gd.stub.php.

◆ IMG_MITCHELL

const IMG_MITCHELL = UNKNOWN

Definition at line 283 of file gd.stub.php.

◆ IMG_NEAREST_NEIGHBOUR

const IMG_NEAREST_NEIGHBOUR = UNKNOWN

Definition at line 303 of file gd.stub.php.

◆ IMG_PNG

const IMG_PNG = UNKNOWN

Definition at line 29 of file gd.stub.php.

◆ IMG_POWER

const IMG_POWER = UNKNOWN

Definition at line 288 of file gd.stub.php.

◆ IMG_QUADRATIC

const IMG_QUADRATIC = UNKNOWN

Definition at line 293 of file gd.stub.php.

◆ IMG_SINC

const IMG_SINC = UNKNOWN

Definition at line 298 of file gd.stub.php.

◆ IMG_TGA

const IMG_TGA = UNKNOWN

Definition at line 54 of file gd.stub.php.

◆ IMG_TRIANGLE

const IMG_TRIANGLE = UNKNOWN

Definition at line 313 of file gd.stub.php.

◆ IMG_WBMP

const IMG_WBMP = UNKNOWN

Definition at line 34 of file gd.stub.php.

◆ IMG_WEBP

const IMG_WEBP = UNKNOWN

Definition at line 44 of file gd.stub.php.

◆ IMG_WEBP_LOSSLESS

const IMG_WEBP_LOSSLESS = UNKNOWN

Definition at line 63 of file gd.stub.php.

◆ IMG_WEIGHTED4

const IMG_WEIGHTED4 = UNKNOWN

Definition at line 308 of file gd.stub.php.

◆ IMG_XPM

const IMG_XPM = UNKNOWN

Definition at line 39 of file gd.stub.php.

◆ PNG_ALL_FILTERS

const PNG_ALL_FILTERS = 0x08 | 0x10 | 0x20 | 0x40 | 0x80

Definition at line 465 of file gd.stub.php.

◆ PNG_FILTER_AVG

const PNG_FILTER_AVG = 0x40

Definition at line 461 of file gd.stub.php.

◆ PNG_FILTER_NONE

const PNG_FILTER_NONE = 0x08

Definition at line 455 of file gd.stub.php.

◆ PNG_FILTER_PAETH

const PNG_FILTER_PAETH = 0x80

Definition at line 463 of file gd.stub.php.

◆ PNG_FILTER_SUB

const PNG_FILTER_SUB = 0x10

Definition at line 457 of file gd.stub.php.

◆ PNG_FILTER_UP

const PNG_FILTER_UP = 0x20

Definition at line 459 of file gd.stub.php.

◆ PNG_NO_FILTER

const PNG_NO_FILTER = 0x00

Definition at line 453 of file gd.stub.php.