imagecolorstotal

(PHP 3, PHP 4, PHP 5)

imagecolorstotal -- 取得一幅圖像的調色板中彩色的數目

說明

int imagecolorstotal ( resource image )

本函數返回指定圖像的調色板中的彩色數目。

參見 imagecolorat()imagecolorsforindex()