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

GmagickPixel::getcolor

(PECL gmagick >= Unknown)

GmagickPixel::getcolorReturns the color

Açıklama

public GmagickPixel::getcolor(bool $as_array = false, bool $normalize_array = false): mixed

Returns the color described by the GmagickPixel object, as a string or an array. If the color has an opacity channel set, this is provided as a fourth value in the list.

Bağımsız Değişkenler

as_array

true to indicate return of array instead of string.

normalize_array

true to normalize the color values.

Dönen Değerler

A string or an array of channel values, each normalized if true is given as normalize_array. Throws GmagickPixelException on error.