Documentation du code de SPIP et de ses plugins

Images

ImagePixelImagick extends ImagePixel
in package

Classe de manipulation des pixels envoyé en argument de la callback par _image_map() Les couleur Red Green et Blue sont exprimées en entiers de 0 à 255 L'opacité Alpha est exprimée en floatant de 0 (transparent) à 1 (opaque)

Table of Contents

Properties

$pixel  : ImagickPixel
$x  : int
$y  : int

Methods

__construct()  : mixed
getColor()  : array<string|int, mixed>
getColorAlpha()  : array<string|int, mixed>
setAlpha()  : mixed
setBlue()  : mixed
setColor()  : mixed
setGreen()  : mixed
setRed()  : mixed
setX()  : mixed
setY()  : mixed
x()  : int
y()  : int

Properties

Methods

__construct()

public __construct(mixed $x, mixed $y, mixed &$pixel) : mixed
Parameters
$x : mixed
$y : mixed
$pixel : mixed

getColor()

public getColor() : array<string|int, mixed>
Return values
array<string|int, mixed>

getColorAlpha()

public getColorAlpha() : array<string|int, mixed>
Return values
array<string|int, mixed>

setAlpha()

public setAlpha(float $alpha) : mixed
Parameters
$alpha : float

setColor()

public setColor([int $red = 255 ][, int $green = 255 ][, int $blue = 255 ][, float $alpha = 1 ]) : mixed
Parameters
$red : int = 255
$green : int = 255
$blue : int = 255
$alpha : float = 1

setGreen()

public setGreen(int $green) : mixed
Parameters
$green : int

        
On this page

Search results