createResource()
createResource() : void
Create the image resource
Adapter interface
setAdjust(\Pop\Image\Adjust\AdjustInterface $adjust) : \Pop\Image\Adapter\AdapterInterface
Set the image adjust object
\Pop\Image\Adjust\AdjustInterface | $adjust |
setDraw(\Pop\Image\Draw\DrawInterface $draw) : \Pop\Image\Adapter\AdapterInterface
Set the image draw object
\Pop\Image\Draw\DrawInterface | $draw |
setEffect(\Pop\Image\Effect\EffectInterface $effect) : \Pop\Image\Adapter\AdapterInterface
Set the image effect object
\Pop\Image\Effect\EffectInterface | $effect |
setFilter(\Pop\Image\Filter\FilterInterface $filter) : \Pop\Image\Adapter\AdapterInterface
Set the image filter object
\Pop\Image\Filter\FilterInterface | $filter |
setLayer(\Pop\Image\Layer\LayerInterface $layer) : \Pop\Image\Adapter\AdapterInterface
Set the image layer object
\Pop\Image\Layer\LayerInterface | $layer |
setType(\Pop\Image\Type\TypeInterface $type) : \Pop\Image\Adapter\AdapterInterface
Set the image type object
\Pop\Image\Type\TypeInterface | $type |
load(string $name = null) : \Pop\Image\Adapter\AdapterInterface
Load the image resource from the existing image file
string | $name |
loadFromString(string $data, string $name = null) : \Pop\Image\Adapter\AdapterInterface
Load the image resource from data
string | $data | |
string | $name |
create(integer $width = null, integer $height = null, string $name = null) : \Pop\Image\Adapter\AdapterInterface
Create a new image resource
integer | $width | |
integer | $height | |
string | $name |
createIndex(integer $width = null, integer $height = null, string $name = null) : \Pop\Image\Adapter\AdapterInterface
Create a new indexed image resource
integer | $width | |
integer | $height | |
string | $name |
resizeToWidth(integer $w) : \Pop\Image\Adapter\AdapterInterface
Resize the image object to the width parameter passed
integer | $w |
resizeToHeight(integer $h) : \Pop\Image\Adapter\AdapterInterface
Resize the image object to the height parameter passed
integer | $h |
resize(integer $px) : \Pop\Image\Adapter\AdapterInterface
Resize the image object, allowing for the largest dimension to be scaled to the value of the $px argument.
integer | $px |
scale(float $scale) : \Pop\Image\Adapter\AdapterInterface
Scale the image object, allowing for the dimensions to be scaled proportionally to the value of the $scl argument.
float | $scale |
crop(integer $w, integer $h, integer $x, integer $y) : \Pop\Image\Adapter\AdapterInterface
Crop the image object to a image whose dimensions are based on the value of the $wid and $hgt argument. The optional $x and $y arguments allow for the adjustment of the crop to select a certain area of the image to be cropped.
integer | $w | |
integer | $h | |
integer | $x | |
integer | $y |
cropThumb(integer $px, integer $offset = null) : \Pop\Image\Adapter\AdapterInterface
Crop the image object to a square image whose dimensions are based on the value of the $px argument. The optional $offset argument allows for the adjustment of the crop to select a certain area of the image to be cropped.
integer | $px | |
integer | $offset |
rotate(integer $degrees, \Pop\Image\Color\ColorInterface $bgColor = null) : \Pop\Image\Adapter\Gd
Rotate the image object
integer | $degrees | |
\Pop\Image\Color\ColorInterface | $bgColor |
flip() : \Pop\Image\Adapter\AdapterInterface
Method to flip the image over the x-axis
flop() : \Pop\Image\Adapter\AdapterInterface
Method to flip the image over the y-axis
adjust() : \Pop\Image\Adjust\AdjustInterface
Get the image adjust object
filter() : \Pop\Image\Filter\FilterInterface
Get the image filter object
layer() : \Pop\Image\Layer\LayerInterface
Get the image layer object
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
convert(string $type) : \Pop\Image\Adapter\AdapterInterface
Convert the image object to another format
string | $type |
createColor(\Pop\Image\Color\ColorInterface $color = null, integer $alpha = 100) : mixed
Create and return a color.
\Pop\Image\Color\ColorInterface | $color | |
integer | $alpha |