(PHP 4, PHP 5, PHP 7, PHP 8)
imagecolordeallocate — 釋放圖片的顏色
$image
$color
釋放先前使用 imagecolorallocate() 或 imagecolorallocatealpha() 配置的顏色。
image
一個 GdImage 物件,由影像建立函式之一返回,例如 imagecreatetruecolor()。
color
顏色識別碼。
成功時返回 true,失敗時返回 false。
true
false
gd
範例 #1 使用 imagecolordeallocate()
<?php$white = imagecolorallocate($im, 255, 255, 255);imagecolordeallocate($im, $white);?>