src/UI/Image/Printer.php
public static function saveImage( $fileName, $resource, $type = IMAGETYPE_PNG, $quality = 100 )
	{
		switch( $type )
		{
			case IMAGETYPE_PNG:
				ImagePNG( $resource, $fileName );
				break;
			case IMAGETYPE_JPEG:
				ImageJPEG( $resource, $fileName, $quality );
				break;
			case IMAGETYPE_GIF:
				ImageGIF( $resource, $fileName );
				break;
			default:
				throw new InvalidArgumentException( 'Invalid Image Type' );
		}
	}
public static function saveImage( $fileName, $resource, $type = IMAGETYPE_PNG, $quality = 100 )
	{
		switch( $type )
		{
			case IMAGETYPE_PNG:
				ImagePNG( $resource, $fileName );
				break;
			case IMAGETYPE_JPEG:
				ImageJPEG( $resource, $fileName, $quality );
				break;
			case IMAGETYPE_GIF:
				ImageGIF( $resource, $fileName );
				break;
			default:
				throw new InvalidArgumentException( 'Invalid Image Type' );
		}
	}
public static function saveImage ( $ fileName , $ resource , $ type = IMAGETYPE_PNG , $ quality = 100 ) { switch ( $ type ) { case IMAGETYPE_PNG : ImagePNG ( $ resource , $ fileName ) ; break ; case IMAGETYPE_JPEG : ImageJPEG ( $ resource , $ fileName , $ quality ) ; break ; case IMAGETYPE_GIF : ImageGIF ( $ resource , $ fileName ) ; break ; default : throw new InvalidArgumentException ( 'Invalid Image Type' ) ; } }
Saves an Image to File statically.
@access		public
@static
@param		string		$fleName		Name of target Image File
@param		resource	$resource		Image Resource
@param		int			$type			Image Type
@param		int			$quality		JPEG Quality (1-100)
@return		void
Saves an Image to File statically .