Forum und email


(No version information available, might be only in CVS)

ImagickPixel::__construct — The ImagickPixel constructor


ImagickPixel ImagickPixel::__construct ([ string $color ] )

This function is currently not documented; only the argument list is available.


This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

Constructs an ImagickPixel object. If a color is specified, the object is constructed and then initialised with that color before being returned.



The optional color string to use as the initial value of this object.

Return Values

Returns an ImagickPixel object on success, throwing ImagickPixelException on failure.