imagepstext

(PHP 4, PHP 5) Draws a text over an image using PostScript Type1 fonts array imagepstext ( resource $image, string $text, resource $font_index, int $size, int $foreground, int $background, int $x, int $y [, int $space = 0 [, int $tightness = 0 [, float $angle = 0.0 [, int $antialias_steps = 4 ]]]] ) Draws a text on an image using PostScript Type1 fonts. Refer to PostScript documentation about fonts and their measuring

imagepsslantfont

(PHP 4, PHP 5) Slant a font bool imagepsslantfont ( resource $font_index, float $slant ) Slant a given font. Parameters: font_index A font resource, returned by imagepsloadfont(). slant Slant level. Returns: Returns TRUE on success or FALSE on failure. Changelog:

imagepsloadfont

(PHP 4, PHP 5) Load a PostScript Type 1 font from file resource imagepsloadfont ( string $filename ) Load a PostScript Type 1 font from the given filename. Parameters: filename Path to the Postscript font file. Returns: In the case everything went right, a valid font index will be returned and can be used for further purposes. Otherwise the funct

imagepsfreefont

(PHP 4, PHP 5) Free memory used by a PostScript Type 1 font bool imagepsfreefont ( resource $font_index ) imagepsfreefont() frees memory used by a PostScript Type 1 font. Parameters: font_index A font resource, returned by imagepsloadfont(). Returns: Returns TRUE on success or FALSE on failure. Changelog:

imagepsextendfont

(PHP 4, PHP 5) Extend or condense a font bool imagepsextendfont ( resource $font_index, float $extend ) Extend or condense a font (font_index), if the value of the extend parameter is less than one you will be condensing the font. Parameters: font_index A font resource, returned by imagepsloadfont(). extend Extension value, must be grea

imagepsencodefont

(PHP 4, PHP 5) Change the character encoding vector of a font bool imagepsencodefont ( resource $font_index, string $encodingfile ) Loads a character encoding vector from a file and changes the fonts encoding vector to it. As a PostScript fonts default vector lacks most of the character positions above 127, you'll definitely want to change this if you use a language other than English. If you find yourself using this funct

imagepsbbox

(PHP 4, PHP 5) Give the bounding box of a text rectangle using PostScript Type1 fonts array imagepsbbox ( string $text, resource $font, int $size ) array imagepsbbox ( string $text , resource $font , int $size , int $space , int $tightness , float $angle ) Gives the bounding box of a text rectangle using PostScript Type1 fonts. The bounding box is calculated using information available from character metrics, and unfortun

imagepolygon

(PHP 4, PHP 5, PHP 7) Draws a polygon bool imagepolygon ( resource $image, array $points, int $num_points, int $color ) imagepolygon() creates a polygon in the given image. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). points An array containing the polygon's vertices

imagepng

(PHP 4, PHP 5, PHP 7) Output a PNG image to either the browser or a file bool imagepng ( resource $image [, string $filename [, int $quality [, int $filters ]]] ) Outputs or saves a PNG image from the given image. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). filename

imagepalettetotruecolor

(PHP 5 >= 5.5.0, PHP 7) Converts a palette based image to true color bool imagepalettetotruecolor ( resource $src ) Converts a palette based image, created by functions like imagecreate() to a true color image, like imagecreatetruecolor(). Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().