imagecolorclosesthwb
(PHP 4 >= 4.0.1)
imagecolorclosesthwb -- Get the index of the color which
has the hue, white and blackness nearest to the given color
Description
int imagecolorclosesthwb ( resource image, int red, int
green, int blue)
Warning
This function is currently not documented; only the argument
list is available.
imagecolordeallocate
(PHP 3>= 3.0.6, PHP 4 )
imagecolordeallocate -- De-allocate a color for an image
Description
int imagecolordeallocate ( resource image, int color)
The imagecolordeallocate() function de-allocates a color
previously allocated with imagecolorallocate() or imagecolorallocatealpha().
<?php
$white = imagecolorallocate($im, 255, 255, 255);
imagecolordeallocate($im, $white);
?>
See also imagecolorallocate() and imagecolorallocatealpha().
|