\Pop\Image\EffectGmagick

Effect class for Gmagick

Summary

Methods
Properties
Constants
__construct()
getImage()
setImage()
border()
fill()
No public properties found
No constants found
getBlend()
calculateSteps()
$image
N/A
No private methods found
No private properties found
N/A

Properties

$image

$image : mixed

Image object

Type

mixed

Methods

__construct()

__construct(\Pop\Image\Adapter\AbstractAdapter  $image = null) 

Constructor

Instantiate an image edit object

Parameters

\Pop\Image\Adapter\AbstractAdapter $image

border()

border(\Pop\Image\Color\ColorInterface  $color, integer  $w = 1, integer  $h = null) : \Pop\Image\Effect\Gmagick

Draw a border around the image.

Parameters

\Pop\Image\Color\ColorInterface $color
integer $w
integer $h

Throws

\Pop\Image\Effect\Exception

Returns

\Pop\Image\Effect\Gmagick

getBlend()

getBlend(\Pop\Image\Color\ColorInterface  $color1, \Pop\Image\Color\ColorInterface  $color2, integer  $tween) : array

Get the blend between 2 colors

Parameters

\Pop\Image\Color\ColorInterface $color1
\Pop\Image\Color\ColorInterface $color2
integer $tween

Throws

\Pop\Image\Effect\Exception

Returns

array

calculateSteps()

calculateSteps(integer  $curStep, integer  $start, integer  $end, integer  $totalSteps) : integer

Calculate the steps between two points

Parameters

integer $curStep
integer $start
integer $end
integer $totalSteps

Returns

integer