public function scale($scale = 1)
    {
        if ($scale > 1) {
            $scale = 1;
        }

        $width = (int) $this->width * $scale;
        $height = (int) $this->height * $scale;

        $this->resize($width, $height);

        return $this;
    }
public function scale($scale = 1)
    {
        if ($scale > 1) {
            $scale = 1;
        }

        $width = (int) $this->width * $scale;
        $height = (int) $this->height * $scale;

        $this->resize($width, $height);

        return $this;
    }
public function scale ( $ scale = 1 ) { if ( $ scale > 1 ) { $ scale = 1 ; } $ width = ( int ) $ this -> width * $ scale ; $ height = ( int ) $ this -> height * $ scale ; $ this -> resize ( $ width , $ height ) ; return $ this ; }
Scales the image.

@access public
@param int|double $scale
@return \GImage\Image
Scales the image .