PHP graphic processing function summary overview _ PHP Tutorial

Source: Internet
Author: User
Summary of PHP graphic processing functions. Getimagesize: get the length and width of the image. Imagearc: draw an arc. Imagechar: write horizontal characters. Imagecharup: write straight-forward characters. Imagecolorallocate: the matching color. Imagecolortran

Getimagesize: get the length and width of the image.
Imagearc: draw an arc.
Imagechar: write horizontal characters.
Imagecharup: write straight-forward characters.
Imagecolorallocate: the matching color.
Imagecolortransparent: specifies the transparent background color.
Imagecopyresized: copy and resize a new image.
Imagecreate: create a new graph.
Imagedashedline: dotted line.
Imagedestroy: End image.
Imagefill: Graphic coloring.
Imagefilledpolygon: color the polygon area.
Imagefilledrectangle: color the rectangle area.
Imagefilltoborder: color within the specified color area.
Imagefontheight: obtains the height of the font.
Imagefontwidth: This PHP graphic processing function obtains the font width.
Imageinterlace: whether to display the image in a staggered manner.
Imageline: draw a solid line.
Imageloadfont: loads lattice fonts.
Imagepolygon: returns a polygon.
Imagerectangle: draws a rectangle.
Imagesetpixel: a painting point.
Imagestring: a horizontal string.
Imagestringup: draws a straight string.
Imagesx: get the image width.
Imagesy: get the image height.
Imagettfbbox: calculates the area occupied by ttf text.
Imagettftext: write ttf text to the graph.
Imagecolorat: This PHP graphic processing function obtains the index value of the fixed point color in the figure.
Imagecolorclosest: the closest to the specified color in the calculation color table.
Imagecolorexact: calculates the color index value specified in the color table.
Imagecolorresolve: calculates the index value specified in the color table or closest to the color.
Imagecolorset: specifies the color of the index on the color table.
Imagecolorsforindex: Gets the color of the specified index on the color table.
Imagecolorstotal: calculates the number of colors of an image.
Imagepsloadfont: loads the postscript font.
Imagepsfreefont: remove the postscript font.
Imagepsencodefont: converts a postscript font to a vector word.
Imagepstext: write postscript text to the graph.
Imagepsbbox: calculates the area occupied by postscript text.
Imagecreatefrompng: retrieves the png image.
Imagepng: Create a png image.
Imagecreatefromgif: Get the gif image.
Imagegif: Creates a gif image.

The above list lists all types of PHP graphics processing functions.


Http://www.bkjia.com/PHPjc/446062.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/446062.htmlTechArticlegetimagesize: get the length and width of the image. Imagearc: draw an arc. Imagechar: write horizontal characters. Imagecharup: write straight-forward characters. Imagecolorallocate: the matching color. Imagecolortran...

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.