AbstractDriver
in package
AbstractYes
Table of Contents
Properties
- $decoder : AbstractDecoder
- Decoder instance to init images from
- $encoder : AbstractEncoder
- Image encoder instance
Methods
- cloneCore() : mixed
- Returns clone of given core
- encode() : Image
- Encodes given image
- executeCommand() : AbstractCommand
- Executes named command on given image
- getDriverName() : string
- Returns name of current driver instance
- init() : Image
- Initiates new image from given input
- newImage() : Image
- Creates new image instance
- parseColor() : AbstractColor
- Reads given string into color object
- coreAvailable() : bool
- Checks if core module installation is available
- getCommandClassName() : string
- Returns classname of given command name
Properties
$decoder
Decoder instance to init images from
public
AbstractDecoder
$decoder
$encoder
Image encoder instance
public
AbstractEncoder
$encoder
Methods
cloneCore()
Returns clone of given core
public
cloneCore(mixed $core) : mixed
Parameters
- $core : mixed
encode()
Encodes given image
public
encode(Image $image, string $format, int $quality) : Image
Parameters
- $image : Image
- $format : string
- $quality : int
Return values
ImageexecuteCommand()
Executes named command on given image
public
executeCommand(Image $image, string $name, array<string|int, mixed> $arguments) : AbstractCommand
Parameters
- $image : Image
- $name : string
- $arguments : array<string|int, mixed>
Return values
AbstractCommandgetDriverName()
Returns name of current driver instance
public
getDriverName() : string
Return values
stringinit()
Initiates new image from given input
public
init(mixed $data) : Image
Parameters
- $data : mixed
Return values
ImagenewImage()
Creates new image instance
public
abstract newImage(int $width, int $height, string $background) : Image
Parameters
- $width : int
- $height : int
- $background : string
Return values
ImageparseColor()
Reads given string into color object
public
abstract parseColor(string $value) : AbstractColor
Parameters
- $value : string
Return values
AbstractColorcoreAvailable()
Checks if core module installation is available
protected
abstract coreAvailable() : bool
Return values
boolgetCommandClassName()
Returns classname of given command name
private
getCommandClassName(string $name) : string
Parameters
- $name : string