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

Imagick::getImageWidth

(PECL imagick 2, PECL imagick 3)

Imagick::getImageWidthReturns the image width

说明

public Imagick::getImageWidth(): int

Returns the image width.

参数

此函数没有参数。

返回值

Returns the image width.

错误/异常

错误时抛出 ImagickException。