PHP image function set of images

Source: Internet
Author: User
Tags dashed line transparent color
This article collects some functions of the image operation in PHP, there is a brief description, the need for friends, you can refer to the next.

A set of PHP image function sets, as follows:

Gd_info function: Gets the information of the currently installed GD library getimagesize function: Gets the size of the image image_type_to_extension function: Gets the file suffix of the image type Image_type_to_mime_ Type function: Determine the MIME type of a ImageType constant image2wbmp function: Output an image in wbmp format to a browser or file Imagealphablending function: Set the image's color-blending mode Imageantialias function: Whether to use AntiAlias (antialiasing) function Imagearc function: Draw Elliptical arc Imagechar function: Draw a character horizontally Imagecharup function: Draw a character vertically Imagecolorallocate function: Assigns a color imagecolorallocatealpha function to an image: assigns a color +alpha Imagecolorat function to an image: Gets the color index value of a 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 IMAGECOLORCLOSESTHWB function: Gets the black-white index closest to the specified color Imagecolordeallocate function: Cancels the allocation of the image color Imagecolorexact function: Gets the index value of the specified color Imagecolorexactalpha function: Gets the index value of the specified color plus transparency Imagecolormatch function: To make the color of the palette version in an image match the true-color version of the Imagecolorresolve function: Gets the index value of the specified color or the closest alternative value possible Imagecolorresolvealpha function: Gets the specified color transparency Index value or possibly the nearest alternative value Imagecolorset function: Sets the color Imagecolorsforindex function for the specified palette index: 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 a transparent color imageconvolution function: Request a 3*3 convolution matrix imagecopy function: Copy part of an image Imagecopymerge function: Copy and merge part of an image Imagecopymergegray function: WithGrayscale copy and merge part of an image imagecopyresampled function: resample copy part of image and resize imagecopyresized function: Copy part of image and resize Imagecreate function: Create a new palette-based image

IMAGECREATEFROMGD2 function: Create a new image from the GD 2 file or URL Imagecreatefromgd2part function: from the given GD 2 file or part of a URL create a new image IMAGECREATEFROMGD function: Create a new image from the gd file or URL imagecreatefromgif function: Create a new image from a GIF file or URL imagecreatefromjpeg function: from a JPEG file or create a new image in the URL imagecreatefrompng function: Create a new image from a PNG file or URL imagecreatefromstring function: Create a new image from the image stream in the string imagecreatefromwbmp function: From wbmp file or URL Create a new image in the IMAGECREATEFROMXBM function: Create a new image from the xbm file or URL imagecreatefromxpm function: Create a new image from the xpm file or URL Imagecreatetruecolor function: Create a new true color image imaged Ashedline function: Draw a dashed line Imagedestroy function: Destroy an image Imageellipse function: Draw an ellipse Imagefill function: Fills an area Imagefilledarc function with the specified color: Draw an elliptical arc and fill the Imagefilledell Ipse function: Draw an ellipse and fill the Imagefilledpolygon function: Draw a polygon and fill the Imagefilledrectangle function: Draw a rectangle and fill the Imagefilltoborder function: The area is filled to the boundary of the specified color ImageFilter Function: Use filter imagefontheight function for Image: Get font height imagefontwidth function: Gets the font width imageftbbox function: Gives a text box Imagefttext function using FreeType2 font: Use FreeType2 font to Text Write image Imagegammacorrect function: Apply gamma correction imagegd2 function to GD Image: Will GD 2 image output to browser or file Imagegd function: Output GD image to browser or file Imagegif function: Output image to browser or file Imageinterlace function in GIF format: Activate or disable interlaced Imageistruecolor function: Check whether the image is a true color map Like the imagejpeg function: output images in JPEG format toBrowser or file Imagelayereffect function: Sets the alpha process color flag to use the bound LIBGD layered effect imageline function: Draw a segment Imageloadfont function: Load a new font imagepalettecopy function: Copy the palette from an image To another imagepng function: Output the image in PNG format to the browser or file Imagepolygon function: Draw a polygon Imagepsbbox function: Give a PostScript Type1 text box Imagepsencodefont function: Change the character encoding vector imagepsextendfont function in the font: Expand or refine the font Imagepsfreefont function: Release a PostScript Type1 memory Imagepsloadfont function: Load a PostScript Type1 font Imagepsslantfont function from a file: Tilt a font imagepstext function: PostScript Type1 font to draw a text string on an image Imagerectangle function: Draw a rectangle imagerotate function: Rotate the image Imagesavealpha function with a given angle: Set the marker to save the full alpha channel information when the PNG image is saved Imagesetbrush Function: Sets the brush image for drawing lines  Imagesetpixel function: Draw a single pixel Imagesetstyle function: Set the style of the line imagesetthickness function: Set the width of the line imagesettile function: Set the map imagestring function for filling: Draw a line of string horizontally Imagestringup function: To draw a line of strings vertically imagesx function: Get image width Imagesy function: Get image height Imagetruecolortopalette function: Convert true color image to palette image Imagettfbbox function: Get the range of text using TrueType fonts Imagettftext function: Writing text to an image with TrueType fonts Imagetypes function: Returns the image type supported by the current PHP version imagewbmp function: Output the image to a browser or file IMAGEXBM function in wbmp format: Export the XBM image to a browser or file iptcembed function: Embeds binary IPTC data into a JPEG image iptcparse function: Resolves a binary IPTC block to a single tag JPEG2WBMP function: Convert a JPEG image file to a wbmp image file Png2wbmp function: Convert a PNG image file to a wbmp image file

  • Related Article

    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.