PHP's GD library function encyclopedia

Source: Internet
Author: User

GetImageSize

function: Get picture size [that is long and wide] usage: array getimagesize (string filename, array [imageinfo]);

Imagearc

Role: Draw arcs Usage: int imagearc (int im, int cx, int cy, int w, int h, int s, int e, int col);

Imagechar

Role: Write horizontal character usage: int Imagechar (int im, int font, int x, int y, string c, int col);

Imagecharup

Role: Write vertical character usage: int Imagecharup (int im, int font, int x, int y, string c, int col);

Imagecolorallocate

Function: Match color usage: int imagecolorallocate (int im, int red, int green, int blue);

Imagecolortransparent

Function: Specify transparent background color usage: int imagecolortransparent (int im, int [col]);

Imagecopyresized

Role: Copy new Diagram and resize usage: int imagecopyresized (int dst_im, int src_im, int dstx, int dsty, int srcx, int srcy, int dstw, int dsth, I NT SRCW, int srcH);

Imagecreate

Function: Create new diagram usage: int imagecreate (int x_size, int y_size);

Imagedashedline

Role: Draw dotted line usage: int imagedashedline (int im, int x1, int y1, int x2, int y2, int col);

Imagedestroy function: End graphic usage explanation: int Imagedestroy (int im);

Imagefill

Role: Graphical coloring usage: int imagefill (int im, int x, int y, int col);

Imagefilledpolygon function: Polygon Area coloring usage: int imagefilledpolygon (int im, array points, int num_points, int col);

Imagefilledrectangle function: Rectangular area coloring usage: int imagefilledrectangle (int im, int x1, int y1, int x2, int y2, int col);

Imagefilltoborder function: Specify coloring usage in color area: int imagefilltoborder (int im, int x, int y, int border, int col);

Imagefontheight

Function: Get the height usage of the font: int imagefontheight (int font);

Imagefontwidth function: Get the width of the font usage: int imagefontwidth (int font);

Imageinterlace function: Use interlaced display or not usage: int imageinterlace (int im, int [interlace]);

Imageline function: Draw solid line usage: int imageline (int im, int x1, int y1, int x2, int y2, int col);

Imageloadfont function: Load lattice font usage: int imageloadfont (string file);

Imagepolygon function: Draw polygon usage: int imagepolygon (int im, array points, int num_points, int col);

Imagerectangle function: Draw rectangular usage: int imagerectangle (int im, int x1, int y1, int x2, int y2, int col);

Imagesetpixel function: Draw point usage: int imagesetpixel (int im, int x, int y, int col); imagestring function: Draw horizontal string usage: int imagestring (int im, int font, int x, int y, string s, int col);

Imagestringup function: Draw straight string usage: int imagestringup (int im, int font, int x, int y, string s, int col);

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.