function Scale($newWidth, $newHeight)
    {
        
        $dstImg = \imagecreatetruecolor($newWidth, $newHeight);
        
        \imagecopyresampled($dstImg, $this->resource, 0, 0, 
                0, 0, $newWidth, $newHeight, $this->Width(), $this->Height());
        
        $this->AssignResource($dstImg);
    }
function Scale($newWidth, $newHeight)
    {
        
        $dstImg = \imagecreatetruecolor($newWidth, $newHeight);
        
        \imagecopyresampled($dstImg, $this->resource, 0, 0, 
                0, 0, $newWidth, $newHeight, $this->Width(), $this->Height());
        
        $this->AssignResource($dstImg);
    }
function Scale ( $ newWidth , $ newHeight ) { $ dstImg = \ imagecreatetruecolor ( $ newWidth , $ newHeight ) ; \ imagecopyresampled ( $ dstImg , $ this -> resource , 0 , 0 , 0 , 0 , $ newWidth , $ newHeight , $ this -> Width ( ) , $ this -> Height ( ) ) ; $ this -> AssignResource ( $ dstImg ) ; }
Scales to new size
@param int $newWidth
@param int $newHeight
Scales to new size