Documentation

Imagick extends AbstractLayer
in package

Layer class for Imagick

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
4.0.0

Table of Contents

Properties

$image  : mixed
Image object
$opacity  : mixed
Opacity
$overlay  : int
Overlay style

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

$overlay

Overlay style

protected int $overlay = \Imagick::COMPOSITE_ATOP

Methods

flatten()

Flatten the image layers

public flatten([int $method = Imagick::LAYERMETHOD_FLATTEN ]) : Imagick
Parameters
$method : int = Imagick::LAYERMETHOD_FLATTEN
Return values
Imagick

getOpacity()

Get the opacity

public getOpacity() : int|float|null
Return values
int|float|null

getOverlay()

Get the overlay

public getOverlay() : int
Return values
int

overlay()

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
throws
ImagickException
Return values
Imagick

setOverlay()

Get the overlay

public setOverlay(int $overlay) : Imagick
Parameters
$overlay : int
Return values
Imagick

        
On this page

Search results