PHP imagecolorstotal - 画像のパレット内の色数を取得する

PHP 图像处理PHP 画像処理

imagecolorstotal — 画像のパレット内の色数を取得します。

構文

int imagecolorstotal ( resource $image )

この関数は、指定した画像のパレット内の色数を返します。

関連記事

PHP 图像处理PHP 画像処理

その他の拡張