File: docs/examples/

Recommend this page to a friend!
  Classes of Jose Luis Quintana  >  GImage  >  docs/examples/  >  Download  
File: docs/examples/
Role: Example script
Content type: text/markdown
Description: Example script
Class: GImage
Create graphic images with a fluent interface
Author: By
Last change:
Date: 2 years 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)

For more information send a message to info at phpclasses dot org.