imagecolordeallocate
(PHP 4, PHP 5)
imagecolordeallocate — De-allocate a color for an image
Opis
bool imagecolordeallocate
( resource
$image
, int $color
)De-allocates a color previously allocated with imagecolorallocate() or imagecolorallocatealpha().
Parametry
-
obraz -
Zasób obrazu, zwrócony przez jedną z funkcji tworzących obrazy, taką jak imagecreatetruecolor().
-
color -
The color identifier.
Zwracane wartości
Zwraca TRUE w przypadku powodzenia, FALSE w
przypadku błędu.
Przykłady
Przykład #1 Using imagecolordeallocate()
<?php
$white = imagecolorallocate($im, 255, 255, 255);
imagecolordeallocate($im, $white);
?>
Zobacz też:
- imagecolorallocate() - Allocate a color for an image
- imagecolorallocatealpha() - Allocate a color for an image
