PHP imagecolorset - Set the color for the specified palette index

PHP 图像处理PHP Image Processing

imagecolorset — Set the color for the specified palette index.

Syntax

void imagecolorset ( resource $image , int $index , int $red , int $green , int $blue )

This function sets the specified index in the palette to the specified color. It is useful for creating flood-fill-like effects on palette-based images, avoiding the overhead of actually performing the fill.

Related Articles

PHP 图像处理PHP Image Processing

Other Extensions