imagecolordeallocate
(PHP 4, PHP 5, PHP 7, PHP 8)
imagecolordeallocate — 取消图像颜色的分配
说明
取消分配先前由 imagecolorallocate() 或 imagecolorallocatealpha() 分配的颜色。
示例
示例 #1 使用 imagecolordeallocate()
<?php
$white = imagecolorallocate($im, 255, 255, 255);
imagecolordeallocate($im, $white);
?>
参见
- imagecolorallocate() - 为图像分配颜色
- imagecolorallocatealpha() - 为图像分配颜色
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/function.imagecolordeallocate.php