Home > PHP > Function > > ImagickPixel::setColor()

ImagickPixel::setColor()

ImagickPixel::setColor - Sets the color

Syntax

bool ImagickPixel::setColor (string $color)

Arguments

  • color - The color definition to use in order to initialise the ImagickPixel object.

Description

Sets the color described by the ImagickPixel object, with a string (e.g. "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc.).

Version

PHP PECL imagick 2.0.0

Return value

Returns TRUE if the specified color was set, FALSE otherwise.