Documentation

Driver extends AbstractDriver
in package

Table of Contents

Properties

$decoder  : AbstractDecoder
Decoder instance to init images from
$encoder  : AbstractEncoder
Image encoder instance

Methods

__construct()  : mixed
Creates new instance of driver
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

Methods

__construct()

Creates new instance of driver

public __construct([Decoder $decoder = null ][, Encoder $encoder = null ]) : mixed
Parameters
$decoder : Decoder = null
$encoder : Encoder = null

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
Image

executeCommand()

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
AbstractCommand

getDriverName()

Returns name of current driver instance

public getDriverName() : string
Return values
string

init()

Initiates new image from given input

public init(mixed $data) : Image
Parameters
$data : mixed
Return values
Image

newImage()

Creates new image instance

public newImage(int $width, int $height[, mixed $background = null ]) : Image
Parameters
$width : int
$height : int
$background : mixed = null
Return values
Image

parseColor()

Reads given string into color object

public parseColor(string $value) : AbstractColor
Parameters
$value : string
Return values
AbstractColor

coreAvailable()

Checks if core module installation is available

protected coreAvailable() : bool
Return values
bool

getCommandClassName()

Returns classname of given command name

private getCommandClassName(string $name) : string
Parameters
$name : string
Return values
string

        
On this page

Search results