public function canvasImageResample($width, $height)
    {
        $oCanvas = imagecreatetruecolor($width, $height);
        imagecopyresampled($oCanvas, $this->oImg, 0, 0, 0, 0, $width, $height, imagesx($this->oImg), imagesy($this->oImg));
        $this->oImg = $oCanvas;
        return $this;
    }
public function canvasImageResample($width, $height)
    {
        $oCanvas = imagecreatetruecolor($width, $height);
        imagecopyresampled($oCanvas, $this->oImg, 0, 0, 0, 0, $width, $height, imagesx($this->oImg), imagesy($this->oImg));
        $this->oImg = $oCanvas;
        return $this;
    }
public function canvasImageResample ( $ width , $ height ) { $ oCanvas = imagecreatetruecolor ( $ width , $ height ) ; imagecopyresampled ( $ oCanvas , $ this -> oImg , 0 , 0 , 0 , 0 , $ width , $ height , imagesx ( $ this -> oImg ) , imagesy ( $ this -> oImg ) ) ; $ this -> oImg = $ oCanvas ; return $ this ; }
Function for scale image

@param integer $width
@param integer $height
@return \App\Helpers\Classes\SmartClass
Function for scale image