GD: The basics
4/48
How GD Works
Creating a canvas
In PHP, graphics are both created and manipulated in five steps:
•
Creation of a new canvas in memory (from an image, or from scratch)
•
Allocation of the colors used in the canvas
•
Manipulation of the canvas
•
Accessing the final image canvas as an image
•
Destruction of the canvas in memory