imagecolorstotal

(PHP 3, PHP 4 , PHP 5)

imagecolorstotal -- 画像パレットの色数の検出

説明

int imagecolorstotal ( resource image)

指定した画像パレットの色数を返します。

imagecolorat()および imagecolorsforindex()も参考にしてください。