Imagick::getOption

(PECL imagick 2, PECL imagick 3)

Imagick::getOptionReturns a value associated with the specified key

說明

public Imagick::getOption(string $key): string

Returns a value associated within the object for the specified key.

參數(shù)

key

The name of the option

返回值

Returns a value associated with a wand and the specified key.

錯誤/異常

錯誤時拋出 ImagickException。