Phpimage function set

Source: Internet
Author: User
Phpimage function set
This article collects some functions related to image operations in php. For more information, see.

Php image function set, as follows:

Gd_info function: get the information of the currently installed GD Library getimagesize function: get the image size image_type_to_extension function: get the image type file suffix image_type_to_mime_type function: determine the MIME type image2wbmp function of an IMAGETYPE constant: output the image to a browser or file in WBMP format. imagealphablending function: sets the image mixing mode. imageantialias function: whether to use the antialias function. imagearc function: draws an elliptical arc imagechar function: horizontal draw a character imagecharup function: vertical draw a character imagecolorallocate function: assign color to an image imagecolorallocatealpha function: assign color to an image + alpha imagecolorat function: obtain the color index value of a certain pixel imagecolorclosest function: obtain the index value of the closest color to the specified color imagecolorclosestalpha function: obtain the index value imagecolorclosesthwb function of the color closest to the specified color and transparency: obtain the black and white index imagecolordeallocate function that is the closest to the specified color. function: cancel image color allocation imagecolorexact function: obtain the imagecolorexactalpha function of the specified color: the imagecolormatch function is used to obtain the index value of the specified color and transparency. this function makes the color of the palette version in an image more compatible with the true color version: obtain the index value of the specified color or the nearest possible substitution value imagecolorresolvealpha function: Gets the index value of the specified color transparency or the nearest possible substitution value imagecolorset function: set the color imagecolorsforindex for the specified palette index function: get the color imagecolorstotal function of an index: get the number of colors in the palette of an image imagecolortransparent function: define a color as transparent imageconvolution function: apply for a 3*3 convolution matrix imagecopy function: copy part of the image imagecopymerge function: copy and merge part of the image imagecopymergegray function: Use the Grayscale copy and merge part of the image imagecopyresampled function: re-sample and copy part of the image and resize imagecopyresized function: copy part of the image and resize imagecreate function: create a new palette-based image

Imagecreatefromgd2 function: create an image imagecreatefromgd2part function from the GD 2 file or URL: create an image imagecreatefromgd function from a part of the given GD 2 file or URL: create an image imagecreatefromgif function from the GD file or URL: create an image imagecreatefromjpeg function from the GIF file or URL: create an image imagecreatefrompng function from the JPEG file or URL: create an image imagecreatefromstring function from a PNG file or URL: create an image imagecreatefromwbmp function from the image stream in the string: create an image imagecreatefromxbm function from the WBMP file or URL: create an image imagecreatefromxpm function from the XBM file or URL: create an image imagecreatetruecolor function from the XPM file or URL: create a true color image imagedashedline function: draw a dotted line imagedestroy function: destroy an image imageellipse function: draw an elliptical imagefill function: fill an area with the specified color imagefilledarc function: draw an elliptical arc and fill the imagefilledellipse function: draw an elliptic and fill the imagefilledpolygon function: draw a polygon and fill the imagefilledrectangle function: draw a rectangle and fill the imagefilltoborder function: fill the area to the border of the specified color imagefilter function: use the filter imagefontheight function for the image: Get the font height imagefontwidth function: function for obtaining the font width imageftbbox: returns a text box imagefttext function using the FreeType2 font. function for writing text to the image imagegammacorrect using the FreeType2 font: applies the gamma correction imagegd2 function to the GD image: function for outputting GD 2 images to a browser or file imagegd: function for outputting GD images to a browser or file imagegif: function for outputting images to a browser or file imageinterlace in GIF format: enable or disable the function of scanning imageistruecolor by line: checks whether the image is true. the Function of imagejpeg is used to output the image to a browser or a file in JPEG format. the Function of imagelayereffect is as follows: set the alpha color mixing sign to use the bound libgd layered effect imageline function: draw a line segment imageloadfont function: load a new font imagepalettecopy function: Copy the palette from one image to another imagepng function: output the image to a browser or file in PNG format. imagepolygon function: draws a polygon imagepsbbox function: provides a text box imagepsencodefont function that uses the PostScript Type1 font: changes the character encoding vector in the font. imagepsextendfont function: extended or simplified font imagepsfreefont function: releases the memory occupied by a PostScript Type1 font. imagepsloadfont function: loads a PostScript Type1 font imagepsslantfont from the file. function: skew a certain font imagepstext function: draw a text string in the PostScript Type1 font on the image. imagerectangle function: draw a rectangle. imagerotate function: rotate the image at a given angle. imagesavealpha function: set the flag to save the complete alpha channel information while saving the PNG image imagesetbrush function: Set the paint brush image imagesetpixel function for the draw line: draw a single pixel imagesetstyle function: set the style imagesetthickness function: set the width of the line imagesettile function: Set the texture imagestring function for filling: horizontally draw a line of string imagestringup function: vertically draw a line of string imagesx function: function for obtaining image width imagesy: function for obtaining Image height imagetruecolortopalette: function for converting a true color image to a color palette image imagettfbbox: function for obtaining the range of imagettftext using TrueType fonts: use the TrueType font to write the text imagetypes function to the image: return the image type imagewbmp function supported by the current PHP version: the function of outputting the image to the browser or file imagexbm in WBMP format: function for outputting XBM images to a browser or file iptcembed: embedding binary IPTC data into a JPEG image iptcparse function: parses the binary IPTC block into a single labeled %2wbmp function: convert a JPEG image file to a WBMP image file. the function is to convert a PNG image file to a WBMP image file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.