class Imagine extends AbstractImagine
Imagine implementation using the Gmagick PHP extension
Methods
ImagineInterface |
setMetadataReader(MetadataReaderInterface $metadataReader)
|
from AbstractImagine |
MetadataReaderInterface |
getMetadataReader()
|
from AbstractImagine |
__construct()
|
||
ImageInterface |
open(string $path)
Opens an existing image from $path |
|
ImageInterface |
create(BoxInterface $size, ColorInterface $color = null)
Creates a new empty image with an optional background color |
|
ImageInterface |
load(string $string)
Loads an image from a binary $string |
|
ImageInterface |
read(resource $resource)
Loads an image from a resource $resource |
|
FontInterface |
font(string $file, integer $size, ColorInterface $color)
Constructs a font with specified $file, $size and $color |
Details
in AbstractImagine at line 27
public ImagineInterface
setMetadataReader(MetadataReaderInterface $metadataReader)
in AbstractImagine at line 37
public MetadataReaderInterface
getMetadataReader()
at line 34
public
__construct()
at line 44
public ImageInterface
open(string $path)
Opens an existing image from $path
at line 61
public ImageInterface
create(BoxInterface $size, ColorInterface $color = null)
Creates a new empty image with an optional background color
at line 105
public ImageInterface
load(string $string)
Loads an image from a binary $string
at line 113
public ImageInterface
read(resource $resource)
Loads an image from a resource $resource
at line 131
public FontInterface
font(string $file, integer $size, ColorInterface $color)
Constructs a font with specified $file, $size and $color
The font size is to be specified in points (e.g. 10pt means 10)