ImagickDraw::translate
ImagickPixel::clear
ImageMagick
PHP Manual
The
ImagickPixel
class
(PECL imagick 2.0.0)
类摘要
ImagickPixel
{
bool
clear
(
void
)
__construct
([
string
$color
] )
bool
destroy
(
void
)
array
getColor
([
int
$normalized
= 0
] )
string
getColorAsString
(
void
)
int
getColorCount
(
void
)
public
array
getColorQuantum
(
void
)
float
getColorValue
(
int
$color
)
public
number
getColorValueQuantum
(
int
$color
)
array
getHSL
(
void
)
public
int
getIndex
(
void
)
bool
isPixelSimilar
(
ImagickPixel
$color
,
float
$fuzz
)
public
bool
isPixelSimilarQuantum
(
string
$color
[,
string
$fuzz
] )
bool
isSimilar
(
ImagickPixel
$color
,
float
$fuzz
)
bool
setColor
(
string
$color
)
public
bool
setcolorcount
(
int
$colorCount
)
bool
setColorValue
(
int
$color
,
float
$value
)
public
bool
setColorValueQuantum
(
int
$color
,
number
$value
)
bool
setHSL
(
float
$hue
,
float
$saturation
,
float
$luminosity
)
public
bool
setIndex
(
int
$index
)
}
Table of Contents
ImagickPixel::clear
— Clears resources associated with this object
ImagickPixel::__construct
— The ImagickPixel constructor
ImagickPixel::destroy
— Deallocates resources associated with this object
ImagickPixel::getColor
— Returns the color
ImagickPixel::getColorAsString
— Returns the color as a string
ImagickPixel::getColorCount
— Returns the color count associated with this color
ImagickPixel::getColorQuantum
— Description
ImagickPixel::getColorValue
— Gets the normalized value of the provided color channel
ImagickPixel::getColorValueQuantum
— Description
ImagickPixel::getHSL
— Returns the normalized HSL color of the ImagickPixel object
ImagickPixel::getIndex
— Description
ImagickPixel::isPixelSimilar
— Check the distance between this color and another
ImagickPixel::isPixelSimilarQuantum
— Description
ImagickPixel::isSimilar
— Check the distance between this color and another
ImagickPixel::setColor
— Sets the color
ImagickPixel::setColorCount
— Description
ImagickPixel::setColorValue
— Sets the normalized value of one of the channels
ImagickPixel::setColorValueQuantum
— Description
ImagickPixel::setHSL
— Sets the normalized HSL color
ImagickPixel::setIndex
— Description
ImagickDraw::translate
ImagickPixel::clear
ImageMagick
PHP Manual