setDimensions() публичный Метод

Set dimensions
public setDimensions ( $width, $height )
$width
$height
Пример #1
0
 /**
  * Create Result object from imagePath
  *
  * @param string $imagePath
  * @return Result
  */
 protected function createResult($imagePath)
 {
     $info = getimagesize($imagePath);
     $result = new Result();
     $result->setDimensions($info[0], $info[1]);
     return $result;
 }