(PHP 4, PHP 5, PHP 7, PHP 8)
imagecolordeallocate — 取消图像颜色的分配
取消分配先前由 imagecolorallocate() 或 imagecolorallocatealpha() 分配的颜色。
image
由图象创建函数(例如imagecreatetruecolor())返回的 GdImage 对象。
color
颜色标识符。
示例 #1 使用 imagecolordeallocate()
<?php
$white = imagecolorallocate($im, 255, 255, 255);
imagecolordeallocate($im, $white);
?>