src/UI/Image/Processing.php
public function scale( $width, $height = NULL, $interpolate = TRUE )
	{
		if( is_null( $height ) )
			$height	= $width;
		if( $width == 1 && $height == 1 )
			return FALSE;
		$width	= (int) round( $this->image->getWidth() * $width );
		$height	= (int) round( $this->image->getHeight() * $height );
		return $this->resize( $width, $height, $interpolate );
	}
public function scale( $width, $height = NULL, $interpolate = TRUE )
	{
		if( is_null( $height ) )
			$height	= $width;
		if( $width == 1 && $height == 1 )
			return FALSE;
		$width	= (int) round( $this->image->getWidth() * $width );
		$height	= (int) round( $this->image->getHeight() * $height );
		return $this->resize( $width, $height, $interpolate );
	}
public function scale ( $ width , $ height = NULL , $ interpolate = TRUE ) { if ( is_null ( $ height ) ) $ height = $ width ; if ( $ width == 1 && $ height == 1 ) return FALSE ; $ width = ( int ) round ( $ this -> image -> getWidth ( ) * $ width ) ; $ height = ( int ) round ( $ this -> image -> getHeight ( ) * $ height ) ; return $ this -> resize ( $ width , $ height , $ interpolate ) ; }
Scales image by factors.
If no factor for height is given, it will be the same as for width.
@access		public
@param		integer		$width			Factor for width
@param		integer		$height			Factor for height
@param		boolean		$interpolate	Flag: use interpolation
@return		boolean		Image has been scaled
@throws		OutOfRangeException if resulting image has more mega pixels than allowed
Scales image by factors . If no factor for height is given it will be the same as for width .