(PHP 4, PHP 5, PHP 7, PHP 8)
imagecolordeallocate — De-allocate a color for an image
De-allocates a color previously allocated with imagecolorallocate() or imagecolorallocatealpha().
imageUna risorsa immagine, restituita da una delle funzioni di creazione immagine, come imagecreatetruecolor().
colorThe color identifier.
| Versione | Descrizione | 
|---|---|
| 8.0.0 | imageexpects a GdImage
  instance now; previously, a validgdresource was expected. | 
Example #1 Using imagecolordeallocate()
<?php
$white = imagecolorallocate($im, 255, 255, 255);
imagecolordeallocate($im, $white);
?>