getDimensions() public method

Returns the height and width of the current image data.
public getDimensions ( ) : array
return array An hash with 'width' containing the width, 'height' containing the height of the image.
示例#1
0
文件: Image.php 项目: platolin/horde
 /**
  * Returns the dimensions of the given view.
  *
  * @param string $view  The view (full, screen etc..) to get dimensions for
  *
  * @return array  A hash of 'width and 'height' dimensions.
  */
 public function getDimensions($view = 'full')
 {
     $this->load($view);
     return $this->_image->getDimensions();
 }