编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « HaruImage::getHeight
  • HaruImage::getWidth »
  • PHP Manual
  • HaruImage
  • Get size of the image

HaruImage::getSize

(PECL haru >= 0.0.1)

HaruImage::getSize — Get size of the image

说明

HaruImage::getSize ( void ) : array

Get the size of the image.

参数

此函数没有参数。

返回值

Returns an array with two elements: width and height, which contain appropriate dimensions of the image.

错误/异常

发生错误时抛出 HaruException 异常。

相关文章
php gmagick adds new image to gmagick object image listphp gmagick displaces an image s colormapphp gmagick returns the image background colorphp gmagick gets the image histogramphp gmagick scales an image proportionally to half its sizephp gmagick scales the size of an imagephp gmagick changes the size of an imagephp harudoc load png image and return haruimage instancephp haruimage get the number of bits used to describe each color component of the imagephp haruimage get the height of the imagephp haruimage get size of the imagephp haruimage get the width of the imagephp haruimage set the color mask of the imagephp haruimage set the image maskphp imagick set image sizephp imagick scales an image proportionally to half its sizephp imagick scales the size of an imagephp imagick sets the image sizephp imagick changes the size of an imagephp imagick convenience method for setting crop size and the image geometry
关注编程学问公众号
编程学问网 湘ICP备20001732号