GD: The basics
6/49
Brushes and Styles
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