Sets the image type

# Gmagick::setimagetype

(PECL gmagick >= Unknown)

Gmagick::setimagetype — Sets the image type

### Descrierea

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

Sets the image type.

### Parametri

`imgType`

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

### Valorile întoarse

The Gmagick object on success.

### Erori/Excepții

Emite o GmagickException în caz de eroare.