\Pop\ImageGd

Image Gd factory class

Summary

Methods
Properties
Constants
getAvailableAdapters()
isAvailable()
load()
loadFromString()
create()
createIndex()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getAvailableAdapters()

getAvailableAdapters() : array

Get the available image adapters

Returns

array

isAvailable()

isAvailable() : boolean

Determine if the GD adapter is available

Returns

boolean

load()

load(string  $image) : \Pop\Image\Adapter\Gd

Load the image resource from the existing image file into a Gd object

Parameters

string $image

Returns

\Pop\Image\Adapter\Gd

loadFromString()

loadFromString(string  $data, string  $name = null) : \Pop\Image\Adapter\Gd

Load the image resource from data into a Gd object

Parameters

string $data
string $name

Returns

\Pop\Image\Adapter\Gd

create()

create(integer  $width, integer  $height, string  $image = null) : \Pop\Image\Adapter\Gd

Create a new image resource and load it into a Gd object

Parameters

integer $width
integer $height
string $image

Returns

\Pop\Image\Adapter\Gd

createIndex()

createIndex(integer  $width, integer  $height, string  $image = null) : \Pop\Image\Adapter\Gd

Create a new indexed image resource and load it into a Gd object

Parameters

integer $width
integer $height
string $image

Returns

\Pop\Image\Adapter\Gd