PHP Classes

File: docs/content/examples/

Recommend this page to a friend!
  Classes of Jose Luis Quintana   GImage PHP Canvas to Image   docs/content/examples/   Download  
File: docs/content/examples/
Role: Example script
Content type: text/markdown
Description: Example script
Class: GImage PHP Canvas to Image
Create and compose canvas images from other images
Author: By
Last change:
Date: 8 months ago
Size: 559 bytes


Class file image Download

Creating figures

The Figure class supports two kind of figures like rectangles and ellipses.

!!! tip "Note"

A figure is a rectangle by default.



use GImage\Figure;

$figure = new Figure(350, 200);
    // ->isRectangle()
    ->setBackgroundColor(255, 0, 0)



use GImage\Figure;

$figure = new Figure(200, 200);
    ->setBackgroundColor(0, 255, 255)