Imagick::getImageType
PHP Manual
PHP Manual»Imagick»Imagick::getImageType

Imagick::getImageType

(PECL imagick 2, PECL imagick 3)

Imagick::getImageType — Gets the image type

Опис

public function Imagick::getImageType(): int

Returns the type of the image, derived from its colorspace, its storage class and whether it carries an alpha channel. The pixels themselves are not examined, so the value reflects how the image is currently held rather than the smallest type it could be reduced to.

Параметри

У цієї функції немає параметрів.

Помилки/виключення

Кидає ImagickException в разі помилки.

To Top