\Pop\Image\LayerGmagick

Layer class for Gmagick

This class has been deprecated as of 2/6/2020 and will no longer be maintained. Please use the Imagick classes instead.

Summary

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

Properties

$opacity

$opacity : mixed

Opacity

Type

mixed

$image

$image : mixed

Image object

Type

mixed

$overlay

$overlay : integer

Overlay style

Type

integer

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

getOverlay()

getOverlay() : integer

Get the overlay

Returns

integer

setOverlay()

setOverlay(integer  $overlay) : \Pop\Image\Layer\Gmagick

Get the overlay

Parameters

integer $overlay

Returns

\Pop\Image\Layer\Gmagick

overlay()

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

Overlay an image onto the current image.

Parameters

string $image
integer $x
integer $y

Returns

\Pop\Image\Layer\Gmagick