(PHP 4, PHP 5, PHP 7, PHP 8)
imagecolorstotal — 取得一幅圖像的調色板中顏色的數目
$image
本函數返回指定圖像的調色板中的顏色數目。
參見(jiàn) imagecolorat() 和 imagecolorsforindex()。