$resource
$resource : mixed
Image resource
SVG image adapter 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\Svg
Constructor
Instantiate an SVG image file object based on either a pre-existing image file on disk, or a new SVG 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\Svg
Create a new SVG image resource
integer | $width | |
integer | $height | |
string | $image |
load(string $image) : \Pop\Image\Svg
Load an existing SVG image resource
string | $image |
addRadialGradient(array $color1, array $color2, float $opacity = 1.0) : \Pop\Image\Svg
Add a gradient
array | $color1 | |
array | $color2 | |
float | $opacity |
addLinearGradient(array $color1, array $color2, float $opacity = 1.0, boolean $vertical = true) : \Pop\Image\Svg
Add a gradient
array | $color1 | |
array | $color2 | |
float | $opacity | |
boolean | $vertical |
setCurGradient(mixed $grad) : \Pop\Image\Svg
Get the current gradient index
mixed | $grad |