JansenFelipe\OMR\Result::setDimensions PHP Méthode

setDimensions() public méthode

Set dimensions
public setDimensions ( $width, $height )
$width
$height
    public function setDimensions($width, $height)
    {
        $this->width = $width;
        $this->height = $height;
    }

Usage Example

Exemple #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;
 }