Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP imagecolorset - Set the Color for the Specified Palette Index

PHP imagecolorset - Set the Color for the Specified Palette Index

PHP Image ProcessingPHP Image Processing

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

PHP Image ProcessingPHP Image Processing