imagecolorclosestalpha

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Get the index of the closest color to the specified color + alpha int imagecolorclosestalpha ( resource $image, int $red, int $green, int $blue, int $alpha ) Returns the index of the color in the palette of the image which is "closest" to the specified RGB value and alpha level. Parameters: image An image resource, returned by one of the i

imagecolorclosest

(PHP 4, PHP 5, PHP 7) Get the index of the closest color to the specified color int imagecolorclosest ( resource $image, int $red, int $green, int $blue ) Returns the index of the color in the palette of the image which is "closest" to the specified RGB value. The "distance" between the desired color and each color in the palette is calculated as if the RGB values represented points in three-dimensional space. If you crea

imagecolorat

(PHP 4, PHP 5, PHP 7) Get the index of the color of a pixel int imagecolorat ( resource $image, int $x, int $y ) Returns the index of the color of the pixel at the specified location in the image specified by image. If PHP is compiled against GD library 2.0 or higher and the image is a truecolor image, this function returns the RGB value of that pixel as integer. Use bitshifting and masking to access the distinct red, gree

imagecolorallocatealpha

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Allocate a color for an image int imagecolorallocatealpha ( resource $image, int $red, int $green, int $blue, int $alpha ) imagecolorallocatealpha() behaves identically to imagecolorallocate() with the addition of the transparency parameter alpha. Parameters: image An image resource, returned by one of the image creation functions, such as

imagecolorallocate

(PHP 4, PHP 5, PHP 7) Allocate a color for an image int imagecolorallocate ( resource $image, int $red, int $green, int $blue ) Returns a color identifier representing the color composed of the given RGB components. imagecolorallocate() must be called to create each color that is to be used in the image represented by image. Note: The first call to imagecolorallocate() fills the background color in palette-based images

imagecharup

(PHP 4, PHP 5, PHP 7) Draw a character vertically bool imagecharup ( resource $image, int $font, int $x, int $y, string $c, int $color ) Draws the character c vertically at the specified coordinate on the given image. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). font

imagechar

(PHP 4, PHP 5, PHP 7) Draw a character horizontally bool imagechar ( resource $image, int $font, int $x, int $y, string $c, int $color ) imagechar() draws the first character of c in the image identified by image with its upper-left at x,y (top left is 0, 0) with the color color. Parameters: image An image resource, returned by one of the image creation functions, such as

imagearc

(PHP 4, PHP 5, PHP 7) Draws an arc bool imagearc ( resource $image, int $cx, int $cy, int $width, int $height, int $start, int $end, int $color ) imagearc() draws an arc of circle centered at the given coordinates. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). cx x-co

imageantialias

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Should antialias functions be used or not bool imageantialias ( resource $image, bool $enabled ) Activate the fast drawing antialiased methods for lines and wired polygons. It does not support alpha components. It works using a direct blend operation. It works only with truecolor images. Thickness and styled are not supported. Using antialiased primitives with transparent background colo

imagealphablending

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Set the blending mode for an image bool imagealphablending ( resource $image, bool $blendmode ) imagealphablending() allows for two different modes of drawing on truecolor images. In blending mode, the alpha channel component of the color supplied to all drawing function, such as imagesetpixel() determines how much of the underlying color should be allowed to shine through. As a result, gd a