\Pop\Image\EffectGd

Effect class for Gd

Summary

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

Properties

Methods

border()

border(array  $color, integer  $w, integer  $h = null) : \Pop\Image\Effect\Gd

Draw a border around the image.

Parameters

array $color
integer $w
integer $h

Throws

\Pop\Image\Effect\Exception

Returns

\Pop\Image\Effect\Gd

fill()

fill(integer  $r, integer  $g, integer  $b) : \Pop\Image\Effect\Gd

Flood the image with a color fill.

Parameters

integer $r
integer $g
integer $b

Returns

\Pop\Image\Effect\Gd

radialGradient()

radialGradient(array  $color1, array  $color2) : \Pop\Image\Effect\Gd

Flood the image with a vertical color gradient.

Parameters

array $color1
array $color2

Returns

\Pop\Image\Effect\Gd

verticalGradient()

verticalGradient(array  $color1, array  $color2) : \Pop\Image\Effect\Gd

Flood the image with a vertical color gradient.

Parameters

array $color1
array $color2

Returns

\Pop\Image\Effect\Gd

horizontalGradient()

horizontalGradient(array  $color1, array  $color2) : \Pop\Image\Effect\Gd

Flood the image with a vertical color gradient.

Parameters

array $color1
array $color2

Returns

\Pop\Image\Effect\Gd

linearGradient()

linearGradient(array  $color1, array  $color2, boolean  $vertical = true) : \Pop\Image\Effect\Gd

Flood the image with a color gradient.

Parameters

array $color1
array $color2
boolean $vertical

Throws

\Pop\Image\Effect\Exception

Returns

\Pop\Image\Effect\Gd

getBlend()

getBlend(array  $color1, array  $color2, integer  $tween) : array

Get the blend between 2 colors

Parameters

array $color1
array $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

getHex()

getHex(array  $color) : string

Get the hex value from a color array

Parameters

array $color

Returns

string