PHP imagecolorset - Set the color for the specified palette index
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
- imagecolorat()Get the color index value of a pixel.
PHP Image Processing