array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'imagick.getformat.php', 1 => 'Imagick::getFormat', 2 => 'Returns the format of the Imagick object', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.getfont.php', 1 => 'Imagick::getFont', ), 'next' => array ( 0 => 'imagick.getgravity.php', 1 => 'Imagick::getGravity', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/getformat.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::getFormat

(PECL imagick 2, PECL imagick 3)

Imagick::getFormatReturns the format of the Imagick object

说明

public Imagick::getFormat(): string

Returns the format of the Imagick object.

参数

此函数没有参数。

返回值

Returns the format of the image.

错误/异常

错误时抛出 ImagickException。