Grafika
class Grafika
Contains factory methods for detecting editors, creating editors and images.
Constants
DIR |
Grafika root directory |
Methods
Return path to directory containing fonts used in text operations.
Change the editor list order of evaluation globally.
Detects and return the name of the first supported editor which can either be "Imagick" or "Gd".
Creates the first available editor.
Create an image.
Create a blank image.
Create a filter. Detects available editor to use.
Draws an object. Detects available editor to use.
Details
at line line 66
static string
fontsDir()
Return path to directory containing fonts used in text operations.
at line line 80
static
setEditorList(array $editorList)
Change the editor list order of evaluation globally.
at line line 95
static string
detectAvailableEditor(array $editorList = null)
Detects and return the name of the first supported editor which can either be "Imagick" or "Gd".
at line line 126
static EditorInterface
createEditor(array $editorList = array('Imagick', 'Gd'))
Creates the first available editor.
at line line 143
static ImageInterface
createImage(string $imageFile)
Create an image.
at line line 163
static ImageInterface
createBlankImage(int $width = 1, int $height = 1)
Create a blank image.
at line line 182
static FilterInterface
createFilter(string $filterName)
Create a filter. Detects available editor to use.
at line line 283
static DrawingObjectInterface
createDrawingObject(string $drawingObjectName)
Draws an object. Detects available editor to use.