ClassFactory
in package
implements
ClassFactoryInterface
The default implementation of Imagine\Factory\ClassFactoryInterface.
Table of Contents
Interfaces
- ClassFactoryInterface
- The interface that class factories must implement.
Properties
- $gdInfo : array<string|int, mixed>|null
Methods
- createBox() : BoxInterface
- Create new BoxInterface instance.
- createDrawer() : DrawerInterface
- Create a new DrawerInterface instance.
- createEffects() : EffectsInterface
- Create a new EffectsInterface instance.
- createFileLoader() : LoaderInterface
- Create a new instance of a file loader.
- createFont() : FontInterface
- Create new FontInterface instance.
- createImage() : ImageInterface
- Create a new ImageInterface instance.
- createLayers() : LayersInterface
- Crate a new instance of a layers interface.
- createMetadataReader() : MetadataReaderInterface
- Create a new instance of a metadata reader.
- finalize() : object
- Finalize the newly created object.
- getGDInfo() : array<string|int, mixed>
Properties
$gdInfo
private
static array<string|int, mixed>|null
$gdInfo
Methods
createBox()
Create new BoxInterface instance.
public
createBox(mixed $width, mixed $height) : BoxInterface
Parameters
- $width : mixed
-
The box width
- $height : mixed
-
The box height
Tags
Return values
BoxInterfacecreateDrawer()
Create a new DrawerInterface instance.
public
createDrawer(mixed $handle, mixed $resource) : DrawerInterface
Parameters
- $handle : mixed
-
The handle that identifies the manipulation library (one of the HANDLE_... constants, or your own implementation).
- $resource : mixed
Tags
Return values
DrawerInterfacecreateEffects()
Create a new EffectsInterface instance.
public
createEffects(mixed $handle, mixed $resource) : EffectsInterface
Parameters
- $handle : mixed
-
The handle that identifies the manipulation library (one of the HANDLE_... constants, or your own implementation).
- $resource : mixed
Tags
Return values
EffectsInterfacecreateFileLoader()
Create a new instance of a file loader.
public
createFileLoader(mixed $path) : LoaderInterface
Parameters
- $path : mixed
Tags
Return values
LoaderInterfacecreateFont()
Create new FontInterface instance.
public
createFont(mixed $handle, mixed $file, mixed $size, ColorInterface $color) : FontInterface
Parameters
- $handle : mixed
-
The handle that identifies the manipulation library (one of the HANDLE_... constants, or your own implementation).
- $file : mixed
- $size : mixed
-
the font size in points (e.g. 10pt means 10)
- $color : ColorInterface
Tags
Return values
FontInterfacecreateImage()
Create a new ImageInterface instance.
public
createImage(mixed $handle, mixed $resource, PaletteInterface $palette, MetadataBag $metadata) : ImageInterface
Parameters
- $handle : mixed
-
The handle that identifies the manipulation library (one of the HANDLE_... constants, or your own implementation).
- $resource : mixed
- $palette : PaletteInterface
- $metadata : MetadataBag
Tags
Return values
ImageInterfacecreateLayers()
Crate a new instance of a layers interface.
public
createLayers(mixed $handle, ImageInterface $image[, mixed $initialKey = null ]) : LayersInterface
Parameters
- $handle : mixed
-
The handle that identifies the manipulation library (one of the HANDLE_... constants, or your own implementation).
- $image : ImageInterface
- $initialKey : mixed = null
-
the key of the initially selected layer
Tags
Return values
LayersInterfacecreateMetadataReader()
Create a new instance of a metadata reader.
public
createMetadataReader() : MetadataReaderInterface
Tags
Return values
MetadataReaderInterfacefinalize()
Finalize the newly created object.
protected
finalize(object $object) : object
Parameters
- $object : object
Return values
objectgetGDInfo()
protected
static getGDInfo() : array<string|int, mixed>