PHP imagecolorset - Set the Color for the Specified Palette Index
imagecolorset — Sets 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 a flood-fill-like effect in palette images, avoiding the overhead of actually filling.
Related Articles
- imagecolorat() Get the color index value of a certain pixel.
PHP Image Processing