array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'gmagick.getimagewidth.php', 1 => 'Gmagick::getimagewidth', 2 => 'Returns the width of the image', ), 'up' => array ( 0 => 'class.gmagick.php', 1 => 'Gmagick', ), 'prev' => array ( 0 => 'gmagick.getimagewhitepoint.php', 1 => 'Gmagick::getimagewhitepoint', ), 'next' => array ( 0 => 'gmagick.getpackagename.php', 1 => 'Gmagick::getpackagename', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmagick/gmagick/getimagewidth.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Gmagick::getimagewidth

(PECL gmagick >= Unknown)

Gmagick::getimagewidthReturns the width of the image

说明

public Gmagick::getimagewidth(): int

Returns the width of the image.

参数

此函数没有参数。

返回值

Returns the image width.

错误/异常

错误时抛出 GmagickException