array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'gmagickpixel.setcolor.php', 1 => 'GmagickPixel::setcolor', 2 => 'Sets the color', ), 'up' => array ( 0 => 'class.gmagickpixel.php', 1 => 'GmagickPixel', ), 'prev' => array ( 0 => 'gmagickpixel.getcolorvalue.php', 1 => 'GmagickPixel::getcolorvalue', ), 'next' => array ( 0 => 'gmagickpixel.setcolorvalue.php', 1 => 'GmagickPixel::setcolorvalue', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmagick/gmagickpixel/setcolor.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

GmagickPixel::setcolor

(PECL gmagick >= Unknown)

GmagickPixel::setcolorSets the color

Beschreibung

public GmagickPixel::setcolor(string $color): GmagickPixel

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

Parameter-Liste

color

The color definition to use in order to initialise the GmagickPixel object.

Rückgabewerte

The GmagickPixel object.