Imagick
extends AbstractLayer
in package
Layer class for Imagick
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor
- flatten() : Imagick
- Flatten the image layers
- getImage() : AbstractAdapter|null
- Get the image object
- getOpacity() : int|float|null
- Get the opacity
- getOverlay() : int
- Get the overlay
- hasImage() : bool
- Has the image object
- overlay() : Imagick
- Overlay an image onto the current image.
- setImage() : AbstractEditObject
- Set the image object
- setOpacity() : AbstractLayer
- Set the image opacity.
- setOverlay() : Imagick
- Get the overlay
Properties
$image
Image object
protected
mixed
$image
= null
$opacity
Opacity
protected
mixed
$opacity
= null
$overlay
Overlay style
protected
int
$overlay
= \Imagick::COMPOSITE_ATOP
Methods
__construct()
Constructor
public
__construct([AbstractAdapter|null $image = null ]) : mixed
Instantiate an image edit object
Parameters
- $image : AbstractAdapter|null = null
flatten()
Flatten the image layers
public
flatten([int $method = Imagick::LAYERMETHOD_FLATTEN ]) : Imagick
Parameters
- $method : int = Imagick::LAYERMETHOD_FLATTEN
Return values
ImagickgetImage()
Get the image object
public
getImage() : AbstractAdapter|null
Return values
AbstractAdapter|nullgetOpacity()
Get the opacity
public
getOpacity() : int|float|null
Return values
int|float|nullgetOverlay()
Get the overlay
public
getOverlay() : int
Return values
inthasImage()
Has the image object
public
hasImage() : bool
Return values
booloverlay()
Overlay an image onto the current image.
public
overlay(string $image[, int $x = 0 ][, int $y = 0 ]) : Imagick
Parameters
- $image : string
- $x : int = 0
- $y : int = 0
Tags
Return values
ImagicksetImage()
Set the image object
public
setImage(AbstractAdapter $image) : AbstractEditObject
Parameters
- $image : AbstractAdapter
Return values
AbstractEditObjectsetOpacity()
Set the image opacity.
public
setOpacity(int|float $opacity) : AbstractLayer
Parameters
- $opacity : int|float
Return values
AbstractLayersetOverlay()
Get the overlay
public
setOverlay(int $overlay) : Imagick
Parameters
- $overlay : int