Home > PHP > Function > GD > imagecolordeallocate()

imagecolordeallocate()

imagecolordeallocate - De-allocate a color for an image

Syntax

bool imagecolordeallocate (resource $image, int $color)

Arguments

  • image - An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
  • color - The color identifier.

Description

De-allocates a color previously allocated with imagecolorallocate() or imagecolorallocatealpha().

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.