IImageAdapter
in
Basic interface for all image adapters.
Table of Contents
- destroy() : mixed
- Destroys the image.
- getHeight() : int
- Returns image height.
- getPixelColor() : object
- Returns the color of the specified pixel.
- getResource() : resource
- Get the raw resource.
- getWidth() : int
- Returns image width.
- load() : mixed
- Loads an image resource.
- loadBinaryString() : mixed
- Loads an image from a binary string representation.
- loadFile() : mixed
- Loads an image from file.
Methods
destroy()
Destroys the image.
public
destroy() : mixed
Return values
mixed —getHeight()
Returns image height.
public
getHeight() : int
Return values
int —getPixelColor()
Returns the color of the specified pixel.
public
getPixelColor(int $x, int $y) : object
Parameters
- $x : int
- $y : int
Return values
object —getResource()
Get the raw resource.
public
getResource() : resource
Return values
resource —getWidth()
Returns image width.
public
getWidth() : int
Return values
int —load()
Loads an image resource.
public
load(resource|object $resource) : mixed
Parameters
- $resource : resource|object
Return values
mixed —loadBinaryString()
Loads an image from a binary string representation.
public
loadBinaryString(string $data) : mixed
Parameters
- $data : string
Return values
mixed —loadFile()
Loads an image from file.
public
loadFile(string $path) : mixed
Parameters
- $path : string