original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Function for scale image
  
  @param integer $width
  @param integer $height
  @return \App\Helpers\Classes\SmartClass
docstring_tokens: Function for scale image