PHP Manual: imagecolordeallocate
imagecolordeallocate
Description
bool imagecolordeallocate ( resource image, int color )De-allocates a color previously allocated with imagecolorallocate() or imagecolorallocatealpha().
Parameters
imageAn image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
colorThe color identifier