ImagickPixel
class ImagickPixel (View source)
Methods
(PECL imagick 2.0.0)
Returns the normalized HSL color of the ImagickPixel object
(PECL imagick 2.0.0)
Sets the normalized HSL color
No description
No description
Gets the colormap index of the pixel wand.
No description
(PECL imagick 2.0.0)
The ImagickPixel constructor
(PECL imagick 2.0.0)
Sets the color
(PECL imagick 2.0.0)
Sets the normalized value of one of the channels
(PECL imagick 2.0.0)
Gets the normalized value of the provided color channel
(PECL imagick 2.0.0)
Clears resources associated with this object
(PECL imagick 2.0.0)
Deallocates resources associated with this object
(PECL imagick 2.0.0)
Check the distance between this color and another
(No version information available, might only be in SVN)
Check the distance between this color and another
(PECL imagick 2.0.0)
Returns the color
(PECL imagick 2.1.0)
Returns the color as a string
(PECL imagick 2.0.0)
Returns the color count associated with this color
No description
Returns true if the distance between two colors is less than the specified distance. The fuzz value should be in the range 0-QuantumRange.
The maximum value represents the longest possible distance in the colorspace. e.g. from RGB(0, 0, 0) to RGB(255, 255, 255) for the RGB colorspace
Returns the color of the pixel in an array as Quantum values. If ImageMagick was compiled as HDRI these will be floats, otherwise they will be integers.
Sets the color count associated with this color from another ImagickPixel object.
No description
Details
float[]
getHSL()
(PECL imagick 2.0.0)
Returns the normalized HSL color of the ImagickPixel object
bool
setHSL(float $hue, float $saturation, float $luminosity)
(PECL imagick 2.0.0)
Sets the normalized HSL color
getColorValueQuantum()
No description
setColorValueQuantum($color_value)
No description
getIndex()
Gets the colormap index of the pixel wand.
setIndex(int $index)
No description
__construct(string $color = null)
(PECL imagick 2.0.0)
The ImagickPixel constructor
bool
setColor(string $color)
(PECL imagick 2.0.0)
Sets the color
bool
setColorValue(int $color, float $value)
(PECL imagick 2.0.0)
Sets the normalized value of one of the channels
float
getColorValue(int $color)
(PECL imagick 2.0.0)
Gets the normalized value of the provided color channel
bool
clear()
(PECL imagick 2.0.0)
Clears resources associated with this object
bool
destroy()
(PECL imagick 2.0.0)
Deallocates resources associated with this object
bool
isSimilar(ImagickPixel $color, float $fuzz)
(PECL imagick 2.0.0)
Check the distance between this color and another
bool
isPixelSimilar(ImagickPixel $color, float $fuzz)
(No version information available, might only be in SVN)
Check the distance between this color and another
array
getColor(int $normalized = 0)
(PECL imagick 2.0.0)
Returns the color
string
getColorAsString()
(PECL imagick 2.1.0)
Returns the color as a string
int
getColorCount()
(PECL imagick 2.0.0)
Returns the color count associated with this color
setColorCount(int $colorCount)
No description
bool
isPixelSimilarQuantum(string $color, string $fuzz)
Returns true if the distance between two colors is less than the specified distance. The fuzz value should be in the range 0-QuantumRange.
The maximum value represents the longest possible distance in the colorspace. e.g. from RGB(0, 0, 0) to RGB(255, 255, 255) for the RGB colorspace
mixed
getColorQuantum()
Returns the color of the pixel in an array as Quantum values. If ImageMagick was compiled as HDRI these will be floats, otherwise they will be integers.
bool
setColorFromPixel(ImagickPixel $srcPixel)
Sets the color count associated with this color from another ImagickPixel object.
void
clone()
No description