\Pop\Image\LayerGd

Layer class for Gd

Summary

Methods
Properties
Constants
getOpacity()
setOpacity()
__construct()
getImage()
setImage()
hasImage()
overlay()
No public properties found
No constants found
No protected methods found
$opacity
$image
N/A
No private methods found
No private properties found
N/A

Properties

$opacity

$opacity : integer

Opacity

Type

integer

$image

$image : mixed

Image object

Type

mixed

Methods

getOpacity()

getOpacity() : mixed

Get the opacity

Returns

mixed

setOpacity()

setOpacity(integer|float  $opacity) : \Pop\Image\Layer\AbstractLayer

Set the image opacity.

Parameters

integer|float $opacity

Returns

\Pop\Image\Layer\AbstractLayer

__construct()

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

Constructor

Instantiate an image edit object

Parameters

\Pop\Image\Adapter\AbstractAdapter $image

hasImage()

hasImage() : boolean

Has the image object

Returns

boolean

overlay()

overlay(string  $image, integer  $x, integer  $y) : \Pop\Image\Layer\Gd

Overlay an image onto the current image.

Parameters

string $image
integer $x
integer $y

Throws

\Pop\Image\Layer\Exception

Returns

\Pop\Image\Layer\Gd