imagecolordeallocate
(PHP 4, PHP 5)
imagecolordeallocate — De-allocate a color for an image
Описание
bool imagecolordeallocate
( resource $image
, int $color
)
De-allocates a color previously allocated with imagecolorallocate() or imagecolorallocatealpha().
Параметри
- image
-
Ресурс на изображение, върнат от някоя от функциите за създаване на изображения като например imagecreatetruecolor().
- color
-
The color identifier.
Връщани стойности
Връща TRUE при успех или FALSE при неуспех.
Примери
Example #1 Using imagecolordeallocate()
<?php
$white = imagecolorallocate($im, 255, 255, 255);
imagecolordeallocate($im, $white);
?>
imagecolordeallocate
There are no user contributed notes for this page.
