php8.5
Home/ Manual/ imagick / imagickpixel/ ImagickPixel::getColorQuantum

ImagickPixel::getColorQuantum

PHP function Edit on GitHub ✎

Returns the color of the pixel in an array as Quantum values

Description

ImagickPixel::getColorQuantum(): array

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.

Func

Parameters Parameters

Return Values

Returns an array with keys "r", "g", "b", "a".

Source: reference/imagick/imagickpixel/getcolorquantum.xml · from the official PHP manual (php/doc-en)