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

PHP imagecolordeallocate - Deallocate the Image Color

PHP imagecolordeallocate - Deallocate the Image Color

PHP Image ProcessingPHP Image Processing

imagecolordeallocate — Deallocates the image color.

Syntax



bool imagecolordeallocate ( resource $image , int $color )

The imagecolordeallocate() function cancels the color previously allocated by imagecolorallocate() or imagecolorallocatealpha() .

Example





The image of the output result of the example above is as follows:

Related Articles

PHP Image ProcessingPHP Image Processing