Gmagick
PHP Manual

Gmagick::setimagetype

(PECL gmagick >= Unknown)

Gmagick::setimagetypeSets the image type

Description

public void Gmagick::setimagetype ( string $imgType )

Sets the image type.

Liste de paramètres

imgType

The image type: UndefinedType, BilevelType, GrayscaleType, GrayscaleMatteType, PaletteType, PaletteMatteType, TrueColorType, TrueColorMatteType, ColorSeparationType, ColorSeparationMatteType, or OptimizeType.

Valeurs de retour

The Gmagick object on success.

Erreurs / Exceptions

Émet une exception GmagickException en cas d'erreur.


Gmagick
PHP Manual