ImagineInterface
interface ImagineInterface implements ClassFactoryAwareInterface
The imagine interface.
Constants
VERSION |
|
Methods
Get the class factory instance to be used.
Creates a new empty image with an optional background color.
Loads an image from a binary $string.
Loads an image from a resource $resource.
Constructs a font with specified $file, $size and $color.
Set the object to be used to read image metadata.
Get the object to be used to read image metadata.
Details
in ClassFactoryAwareInterface at line 17
$this
setClassFactory(ClassFactoryInterface $classFactory)
Set the class factory instance to be used.
in ClassFactoryAwareInterface at line 24
ClassFactoryInterface
getClassFactory()
Get the class factory instance to be used.
at line 36
ImageInterface
create(BoxInterface $size, ColorInterface $color = null)
Creates a new empty image with an optional background color.
at line 47
ImageInterface
open(string|LoaderInterface|mixed $path)
Opens an existing image from $path.
at line 58
ImageInterface
load(string $string)
Loads an image from a binary $string.
at line 69
ImageInterface
read(resource $resource)
Loads an image from a resource $resource.
at line 82
FontInterface
font(string $file, int $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)
at line 91
$this
setMetadataReader(MetadataReaderInterface $metadataReader)
Set the object to be used to read image metadata.
at line 98
MetadataReaderInterface
getMetadataReader()
Get the object to be used to read image metadata.