Gmagick::setimagetype

(PECL gmagick >= Unknown)

Gmagick::setimagetypeSets the image type

说明

public Gmagick Gmagick::setimagetype ( int $imgType )

Sets the image type.

参数

imgType

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

返回值

The Gmagick object on success.

错误/异常

错误时抛出 GmagickException