Documentation

ImagickAdapter extends AbstractAdapter
in package

Base adapter implementation to handle image manipulation.

Table of Contents

$resource  : Imagick|null
$resource  : object|resource|null
__construct()  : mixed
Creates new instance of the image adapter.
destroy()  : void
Destroys the image.
getHeight()  : int
getPixelColor()  : stdClass
getResource()  : resource|object|null
Get the raw resource.
getWidth()  : int
isAvailable()  : bool
load()  : AdapterInterface
Loads an image resource.
loadFromBinary()  : AdapterInterface
loadFromPath()  : AdapterInterface
loadFromUrl()  : AdapterInterface
Loads an image from given URL.

Properties

$resource

public Imagick|null $resource

Image resource/object of current image adapter

$resource

protected object|resource|null $resource

Image resource/object of current image adapter

Methods

__construct()

Creates new instance of the image adapter.

public __construct() : mixed
Return values
mixed

destroy()

Destroys the image.

public destroy() : void
Return values
void

getPixelColor()

public getPixelColor(int $x, int $y) : stdClass
Parameters
$x : int
$y : int
Return values
stdClass

getResource()

Get the raw resource.

public getResource() : resource|object|null
Return values
resource|object|null

isAvailable()

public static isAvailable() : bool
Return values
bool

Search results