(PHP 4, PHP 5, PHP 7, PHP 8)
imagecolordeallocate — イメージの色リソースを開放する
imagecolorallocate() または imagecolorallocatealpha() で確保された色を開放します。
image
imagecreatetruecolor()のような画像作成関数が返す GdImage オブジェクト。
color
色 ID。
例1 imagecolordeallocate() の使用法
<?php
$white = imagecolorallocate($im, 255, 255, 255);
imagecolordeallocate($im, $white);
?>