(PHP 3, PHP 4 >= 4.0.0)
int imagecolorstotal (int im)
int imagecolorstotal
指定した画像パレットの色数を返します。
imagecolorat()および imagecolorsforindex()も参考にしてください。