PHP GD Library Generate verification code

Source: Internet
Author: User

1. Introduction of GD Library, in the php.ini bar Extension=php_gd2.dll in front; Print_r (Gd_info ()); Print out the relevant information.

Learn GD library weight in understanding, 1. Process of Drawing 2, computer coordinate system GD library drawing typical flow 1. Create Canvas imagecreatetruecolor ();  You can also open a picture of a painting cloth imagecreatefromjpeg ($path); 2. Create Pigment imagecolorcate (); 3. Paint the Ink to render Imagefill (); Draw a straight line Imageline () 4. Keep Imagepng () imagejpeg () imagegif (); 5. Destroy the canvas and release the Resource Imagedestroy ($IMG);

PHP GD Library Generate verification code

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.