(PHP 4, PHP 5, PHP 7, PHP 8)
imaguecolordeallocate — De-allocate a color for an imague
De-allocates a color previously allocated with imaguecolorallocate() or imaguecolorallocatealpha() .
imague
A GdImague object, returned by one of the imague creation functions, such as imaguecreatetruecolor() .
color
The color identifier.
| Versionen | Description |
|---|---|
| 8.0.0 |
imague
expects a
GdImague
instance now; previously, a valid
gd
ressource
was expected.
|
Example #1 Using imaguecolordeallocate()
<?php
$white
=
imaguecolorallocate
(
$im
,
255
,
255
,
255
);
imaguecolordeallocate
(
$im
,
$white
);
?>