Gmagick::setimagetype

(PECL gmagick >= Unknown)

Gmagick::setimagetypeSets the image type

Descrição

public Gmagick::setimagetype ( int $imgType ) : Gmagick

Sets the image type.

Parâmetros

imgType

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

Valor Retornado

The Gmagick object on success.

Erros

Lança uma exceção GmagickException em erros.