PHP imagecolorstotal - 画像のパレット内の色数を取得する
imagecolorstotal — 画像のパレット内の色数を取得します。
構文
int imagecolorstotal ( resource $image )
この関数は、指定した画像のパレット内の色数を返します。
関連記事
- imagecolorat()あるピクセルの色インデックス値を取得します。
- imagecolorsforindex()あるインデックスの色を取得します。
imagecolorstotal — 画像のパレット内の色数を取得します。
int imagecolorstotal ( resource $image )
この関数は、指定した画像のパレット内の色数を返します。
PHP 画像処理