Imagick
extends AbstractAdjust
in package
Adjust class for Imagick
Tags
Table of Contents
Properties
- $image : mixed
- Image object
Methods
- __construct() : mixed
- Constructor
- brightness() : Imagick
- Adjust the image brightness
- contrast() : Imagick
- Adjust the image contrast
- desaturate() : Imagick
- Adjust the image desaturate
- getImage() : AbstractAdapter|null
- Get the image object
- hasImage() : bool
- Has the image object
- hsb() : Imagick
- Method to adjust the HSB of the image altogether.
- hue() : Imagick
- Method to adjust the hue of the image.
- level() : Imagick
- Method to adjust the levels of the image using a 0 - 255 range.
- saturation() : Imagick
- Method to adjust the saturation of the image.
- setImage() : AbstractEditObject
- Set the image object
Properties
$image
Image object
protected
mixed
$image
= null
Methods
__construct()
Constructor
public
__construct([AbstractAdapter|null $image = null ]) : mixed
Instantiate an image edit object
Parameters
- $image : AbstractAdapter|null = null
brightness()
Adjust the image brightness
public
brightness(int $amount) : Imagick
Parameters
- $amount : int
Return values
Imagickcontrast()
Adjust the image contrast
public
contrast(int $amount) : Imagick
Parameters
- $amount : int
Return values
Imagickdesaturate()
Adjust the image desaturate
public
desaturate() : Imagick
Return values
ImagickgetImage()
Get the image object
public
getImage() : AbstractAdapter|null
Return values
AbstractAdapter|nullhasImage()
Has the image object
public
hasImage() : bool
Return values
boolhsb()
Method to adjust the HSB of the image altogether.
public
hsb(int $h, int $s, int $b) : Imagick
Parameters
- $h : int
- $s : int
- $b : int
Return values
Imagickhue()
Method to adjust the hue of the image.
public
hue(int $amount) : Imagick
Parameters
- $amount : int
Return values
Imagicklevel()
Method to adjust the levels of the image using a 0 - 255 range.
public
level(int $black, float $gamma, int $white) : Imagick
Parameters
- $black : int
- $gamma : float
- $white : int
Return values
Imagicksaturation()
Method to adjust the saturation of the image.
public
saturation(int $amount) : Imagick
Parameters
- $amount : int
Return values
ImagicksetImage()
Set the image object
public
setImage(AbstractAdapter $image) : AbstractEditObject
Parameters
- $image : AbstractAdapter