Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ImagickPixel::setHSLImagickPixelException>
^ImagickPixelLast updated: Mon, 26 Oct 2026

ImagickPixel::setIndex

(PECL imagick 2 >= 2.3.0, PECL imagick 3)

ImagickPixel::setIndex — Sets the colormap index of the pixel wand

Description

public function ImagickPixel::setIndex(int $index): bool

Sets the colormap index of the pixel wand.

Parameters

index

Return Values

Returns true on success.


<ImagickPixel::setHSLImagickPixelException>
^ImagickPixelLast updated: Mon, 26 Oct 2026