$resource
$resource : mixed
Image resource
Abstract image class
$draw : \Pop\Image\Draw\DrawInterface
Image draw object
$effect : \Pop\Image\Effect\EffectInterface
Image effect object
$type : \Pop\Image\Type\TypeInterface
Image type object
__construct(string $img = null, integer $w = null, integer $h = null) : \Pop\Image\AbstractImage
Constructor
Instantiate an image object based on either a pre-existing image file on disk, or a new image file.
string | $img | |
integer | $w | |
integer | $h |
setDraw(\Pop\Image\Draw\DrawInterface $draw) : \Pop\Image\AbstractImage
Set the image draw object
\Pop\Image\Draw\DrawInterface | $draw |
setEffect(\Pop\Image\Effect\EffectInterface $effect) : \Pop\Image\AbstractImage
Set the image effect object
\Pop\Image\Effect\EffectInterface | $effect |
setType(\Pop\Image\Type\TypeInterface $type) : \Pop\Image\AbstractImage
Set the image type object
\Pop\Image\Type\TypeInterface | $type |
draw() : \Pop\Image\Draw\DrawInterface
Get the image draw object
effect() : \Pop\Image\Effect\EffectInterface
Get the image effect object
type() : \Pop\Image\Type\TypeInterface
Get the image type object
create(integer $width, integer $height, string $image = null) : \Pop\Image\AbstractImage
Create a new image resource
integer | $width | |
integer | $height | |
string | $image |
load(string $image) : \Pop\Image\AbstractImage
Load an existing image as a resource
string | $image |