Last said a simple way to avoid the GD, and then use GD to make the simplest of a "picture"-Straight line.
This time I'm going to draw straight down and say. The part that was explained in detail in the last code, this time no longer
The last time I said a simple way to avoid GD, and then use GD to make the simplest of a "picture"-line.This time I'm going to draw straight down and say. The part that was explained in detail in the last code is not mentioned this time.
Header (
Last talk about using GD as a variety of geometries, as well as fill color. Which deliberately put such a more complex case
Left to the back, this is the freeform and freeform polygon fill color.
?
Header ("Content-type:image/png");
$im =
The last time I said to use GD for various geometric shapes, and fill color. Which deliberately put such a more complex situationLeft behind, this is the fill color for freeform and freeform.
Header ("Content-type:image/png");$im = imagecreate (2
01. php
/*
Drawing with Windows graphic Board
1: Create a canvas and set the size.
2: Create a pigment. (red, r Green G blue B, composed of three primary colors. The primary colors can be 0-from weak to strong ).
3: draw lines, write, draw
Opening the GD library is an important parameter in php. It is often used to process images. Any processing of images requires the support of the GD library, the following describes how to enable the GD library in various systems.
Enable GD
Open GD Library is an important parameter in PHP, commonly used to deal with images, such as images of any processing requires the support of the GD library, below I introduce the various systems of GD library open methods and commands, we can refer
How to enable the GD Library in PHP. Opening the GD Library is an important parameter in php. it is often used to process images. any processing of images requires the support of the GD Library, next I will introduce the methods and commands for
We are using
GetImageSizeEffect: Gets the size of the picture [i.e. length and width]PHP GD Library Usage: array getimagesize (string filename, array [imageinfo]);
ImagearcFunction: Draw an arcUsage: int Imagearc (int im, int cx, int cy, int w, int
GetImageSizeEffect: Gets the size of the image [i.e. length and width] Usage: array getimagesize (string filename, array [imageinfo]);ImagearcFunction: Draw arc usage: int imagearc (int im, int cx, int cy, int w, int h, int s, int e, int
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.