Parsing common image function sets in php

Source: Internet
Author: User
Tags transparent color
This article provides a detailed analysis of common image function sets in php. For more information, see gd_info function: obtain information about the currently installed GD Library.
Getimagesize function: obtains the image size.
Image_type_to_extension function: obtains the file suffix of the image type.
Image_type_to_mime_type function: determines the MIME type of an IMAGETYPE constant.
Image2wbmp function: outputs an image to a browser or file in WBMP format.
Imagealphablending function: sets the mixed color mode of the image.
Imageantialias function: whether to use the antialias function
Imagearc function: draw an elliptical arc
Imagechar function: draw a character horizontally
Imagecharup function: draw a character vertically
Imagecolorallocate function: assign color to an image
Imagecolorallocatealpha function: assign color + alpha to an image
Imagecolorat function: obtains the color index value of a certain pixel.
Imagecolorclosest function: Gets the index value of the color closest to the specified color.
Imagecolorclosestalpha function: Gets the index value of the color closest to the specified color and transparency.
Imagecolorclosesthwb function: Gets the black-white index of the color closest to the specified color.
Imagecolordeallocate function: cancel image color allocation
Imagecolorexact: returns the index value of a specified color.
Imagecolorexactalpha function: Gets the index value of the specified color and transparency.
Imagecolormatch function: make the color of the color palette in an image more match with the real color version.
Imagecolorresolve function: Gets the index value of the specified color or the closest possible alternative value.
Imagecolorresolvealpha function: Gets the index value of the specified color transparency or the closest possible alternative value.
Imagecolorset function: set the color for the specified palette index
Imagecolorsforindex function: Gets the color of an index.
Imagecolorstotal function: gets the number of colors in the palette of an image.
Imagecolortransparent function: defines a color as transparent color.
Imageconvolution function: apply for a 3*3 convolution matrix
Imagecopy function: copy part of an image
Imagecopymerge function: copy and merge part of the image
Imagecopymergegray function: copies and merges a part of an image in grayscale mode.
Imagecopyresampled function: re-sample and copy part of the image and resize it
Imagecopyresized function: copy and resize some images
Imagecreate function: Creates a palette-based image.

Imagecreatefromgd2 function: create an image from the GD 2 file or URL.
Imagecreatefromgd2part function: creates an image from a part of a given GD 2 file or URL.
Imagecreatefromgd function: creates an image from the GD file or URL.
Imagecreatefromgif function: creates an image from a GIF file or URL.
Imagecreatefromjpeg function: creates an image from a JPEG file or URL.
Imagecreatefrompng function: creates an image from a PNG file or URL.
Imagecreatefromstring function: creates an image from the image stream in the string.
Imagecreatefromwbmp: creates an image from a WBMP file or URL.
Imagecreatefromxbm function: creates an image from an XBM file or URL.
Imagecreatefromxpm function: creates an image from an XPM file or URL.
Imagecreatetruecolor function: creates a true color image.
Imagedashedline function: draw a dotted line
Imagedestroy function: destroys an image.
Imageellipse function: draws an elliptic
Imagefill function: fill an area with the specified color
Imagefilledarc function: draw an elliptical arc and fill it
Imagefilledellipse function: draws an ellipse and fills it
Imagefilledpolygon function: draw a polygon and fill it
Imagefilledrectangle function: draws and fills a rectangle.
Imagefilltoborder function: fill the area to the border of the specified color
Imagefilter function: filter images
Imagefontheight function: Get the font height
Imagefontwidth function: obtains the font width.
Imageftbbox function: displays a text box in FreeType2.
Imagefttext function: use FreeType2 to write text to the image
Imagegammacorrect function: apply gamma correction to GD images
Imagegd2 function: outputs the GD 2 image to a browser or file.
Imagegd function: outputs GD images to browsers or files.
Imagegif function: outputs an image to a browser or file in GIF format.
Imageinterlace function: Enables or disables interlace scanning.
Imageistruecolor function: checks whether the image is true or not.
Imagejpeg function: outputs an image to a browser or file in JPEG format.
Imagelayereffect function: Set the alpha color mixing sign to use the bound libgd layering effect.
Imageline function: draw a line segment
Imageloadfont function: load a new font
Imagepalettecopy function: copy a palette from one image to another
Imagepng function: outputs an image to a browser or file in PNG format.
Imagepolygon function: draw a polygon.
Imagepsbbox function: provides a text box that uses the PostScript Type1 font.
Imagepsencodefont function: change the character encoding vector in the font.
Imagepsextendfont function: expanded or simplified font
Imagepsfreefont function: releases the memory occupied by a PostScript Type1 font.
Imagepsloadfont function: loads a PostScript Type1 font from a file.
Imagepsslantfont function: skew a certain font
Imagepstext function: draw a text string on the image using the PostScript Type1 font
Imagerectangle function: draws a rectangle.
Imagerotate function: Rotate an image from a given angle
Imagesavealpha function: sets the flag to save the complete alpha channel information when saving the PNG image.
Imagesetbrush function: Set the paint brush image for the draw line
Imagesetpixel function: draw a single pixel
Imagesetstyle function: sets the style of the draw line.
Imagesetthickness function: set the width of the draw line.
Imagesettile function: sets the texture for filling.
Imagestring function: draw a line of strings horizontally.
Imagestringup function: draw a line of strings vertically
Imagesx function: Get image width
Imagesy function: Get Image height
Imagetruecolortopalette function: convert a true color image to a color palette image
Imagettfbbox function: get the text range using the TrueType font
Imagettftext function: Use the TrueType font to write text to the image
Imagetypes function: returns the image types supported by the current PHP version.
Imagewbmp function: outputs an image to a browser or file in WBMP format.
Imagexbm function: outputs XBM images to browsers or files.
Iptcembed function: embedding binary IPTC data into a JPEG image
Iptcparse function: parses binary IPTC blocks into a single tag
Jpeg2wbmp function: converts a JPEG image file to a WBMP image file.
Png2wbmp function: convert a PNG image file to a WBMP image file

For more articles about parsing common image function sets in php, refer to PHP Chinese network!

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.