Introduction: This is the PHP-GD library-classification finishing detailed page, introduced and PHP, Gd, PHP PHP-GD library-classification sorting related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 360989 'rolling = 'no'>
[From] http://www.cnblogs.com/silvester/articles/1694677.html
PHP-GD database-Classification
The GD library is messy and easy to get confused. Today, I took the time to classify it for your convenience.
image information:
gd_info: obtains information about the currently installed GD library.
imagetypes returns the image types supported by the current PHP version.
image_type_to_extension: obtains the image. type file suffix
image_type_to_mime_type: Get the MIME type of the image type
getimagesize: Get the image size
imagesx gets the image width
Image Height acquisition by imagesy
imageistruecolor: Check whether the image is a true color image
Create/load an image:
imagecreate-create a palette-based image
imagecreatefromgd2-create an image from the GD2 file or URL
imagecreatefromgd2part-from the given
imagecreatefromgd-create an image from the GD file or URL
imagecreatefromgif-create an image from the GIF file or URL one image
imagecreatefromjpeg-create an image from a jpeg file or URL
imagecreatefrompng-create an image from a PNG file or URL
imagecreatefromstring-create an image from the image stream in the string
imagecreatefromwbmp-create an image from a wbmp file or URL
imagecreatefromxbm-create a new image from an xbm file or URL one image
imagecreatefromxpm-create an image from an XPM file or URL
imagecreatetruecolor-create a true color image
output image:
image2wbmp outputs the image to a browser or file in wbmp format
imagegd2 outputs The GD2 image to a browser or file
imagegd GD image output to a browser or file
imagegif outputs the image to a browser or file in GIF format
imagewbmp outputs the image to a browser in wbmp format or file
imagexbm outputs xbm images to a browser or file
imagejpeg outputs images to a browser or file in JPEG format
imagepng output the image to a browser or file in PNG format
Miscellaneous:
Imagealphablending: Set the mixed color mode of the image.
Whether the image antialias function is used
Imageinterlace enables or disables interlace Scanning
Apply Gamma Correction to GD Images Using imagegammacorrect
Iptcembed embeds binary IPTC data into a JPEG Image
Iptcparse parses binary IPTC http://www.iptc.org/block into a single tag
Imagesavealpha settings flag to save the complete alpha channel information when saving the PNG Image (opposite to a single transparent color)
Graphics:
Draw an elliptical arc using imagearc
Imageconvolution uses the coefficient Div and offset to apply for a 3x3 convolution Matrix
Imagedashedline draw a dotted line
Imageellipse draws an elliptic
Imagerectangle draws a rectangle
Imagefilledarc draws an elliptical arc and fills it
Imagefilledellipse draw an elliptic and fill it
Imagefilledpolygon draws a polygon and fills it
Imagefilledrectangle: Draw a rectangle and fill it
Imagesetbrush: Specifies the paint brush image used to draw a line.
Imagesetpixel draws a single pixel
Imagesetstyle
Imagesetthickness: Set the width of the draw line.
Imagepolygon draws a polygon
Imageline draws a line segment
Character/font:
Imagechar draws a character horizontally
Imagecharup draw a vertical character
Draw a line of strings horizontally using imagestring
Imagestringup vertical draw a line of strings
Imagepsbbox provides a text box that uses the postscript type1 font.
Imagepsencodefont: change the character encoding vector in the font.
Imagepsextendfont expanded or simplified font
Imagepsfreefont releases the memory occupied by a postscript type 1 Font
Imagepsloadfont loads a postscript type 1 Font from the file
Imagepsslantfont skew a certain font
Imagepstext draws text strings in the image in the postscript type1 font
Imagettfbbox obtains the text range using the TrueType font
Imagettftext writes text to the image in TrueType font
Imageftbbox provides a text box in FreeType 2 font.
Imagefttext uses FreeType 2 to write text into the image
Imagefontheight: Get the font height
Imagefontwidth to get the font width
Imageloadfont loads a new font
Color:
Imagecolorallocate allocates color to an image
Imagecolorallocatealpha allocates color + Alpha to an image
Imagecolorat obtains the color index value of a certain pixel.
Imagecolorclosest obtains the index value closest to the specified color to obtain the color index value of a certain pixel.
Imagecolorclosestalpha gets the color closest to the specified color and transparency
Imagecolorclosesthwb gets the Black-White index that is the closest to the color of a given color.
Imagecolordeallocate cancel image color allocation
Imagecolorexact gets the index value of the specified color
Imagecolorexactalpha gets the specified color and transparency index value
Imagecolormatch better matches the color of the color palette in an image with the true color version.
Imagepalettecopy copy the palette from one image to another
Imagecolorresolve gets the index value of the specified color or the nearest possible alternative value.
Imagecolorresolvealpha gets the index value of the specified color + Alpha or the closest possible alternative value.
Imagecolorset sets the color for the specified palette Index
Imagecolorsforindex gets the color of an index
Imagecolorstotal gets the number of colors in the palette of an image
Imagecolortransparent defines a color as transparent
Image operations:
Copy part of the image
Copy and merge part of the image
Imagecopymergegray copies and merges a part of the image in grayscale mode.
Imagecopyresampled re-sample and copy part of the image and resize it
Imagecopyresized copy and resize some images
Imagerotate rotate the image from a given angle
Jpeg2wbmp converts JPEG image files into wbmp image files
Png2wbmp converts a PNG image file to a wbmp Image File
Imagedestroy destroy an image
Image processing:
Imagefilter
Imagelayereffect: Set the Alpha color mixing sign to use the bound libgd layering effect.
Imagetruecolortopalette converts a true color image to a color palette Image
Imagefill area Filling
Imagesettile
The imagefilltoborder area is filled to the border of the specified color.
Imagegrabscreen capture screen
Imagegrabwindow capture screen (slightly complicated)
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/360989.html pageno: 1.