imagecolorstotal

(PHP 3, PHP 4, PHP 5)

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

説明

int imagecolorstotal ( resource image )

指定した画像パレットの色数を返します。 truecolor 画像の場合は 0 を返します。

imagecolorat()imagecolorsforindex() および imageistruecolor() も参照ください。