ImagickTrait
Imagick trait.
Tags
Table of Contents
Methods
- fillWhiteToImage() : mixed
- Fill white to the image.
- getFirstFrame() : mixed
- Get animated picture's first frame.
- getImageColorAlpha() : mixed
- Get image color with alpha value (transparency).
Methods
fillWhiteToImage()
Fill white to the image.
protected
fillWhiteToImage() : mixed
getFirstFrame()
Get animated picture's first frame.
protected
getFirstFrame() : mixed
getImageColorAlpha()
Get image color with alpha value (transparency).
private
getImageColorAlpha(string $colorName, int $alpha) : mixed
Parameters
- $colorName : string
-
The color name. Supported 'black', 'white', 'red', 'green', 'blue', 'yellow', 'cyan', 'magenta'.
- $alpha : int
-
The alpha value for use with
\ImagickPixel('rgba()'). The value should be 0.0 to 1.0.