src/UI/Image/Printer.php
public static function showImage( $resource, $type = IMAGETYPE_PNG, $quality = 100, $sendHeader = TRUE )
	{
		switch( $type )
		{
			case IMAGETYPE_GIF:
				if( $sendHeader )
					header( "Content-type: image/gif" );
				ImageGIF( $resource );
				break;
			case IMAGETYPE_JPEG:
				if( $sendHeader )
					header( "Content-type: image/jpeg" );
				ImageJPEG( $resource, "", $quality );
				break;
			case IMAGETYPE_PNG:
				if( $sendHeader )
					header( "Content-type: image/png" );
				ImagePNG( $resource );
				break;
			default:
				throw new InvalidArgumentException( 'Invalid Image Type' );
		}
	}
public static function showImage( $resource, $type = IMAGETYPE_PNG, $quality = 100, $sendHeader = TRUE )
	{
		switch( $type )
		{
			case IMAGETYPE_GIF:
				if( $sendHeader )
					header( "Content-type: image/gif" );
				ImageGIF( $resource );
				break;
			case IMAGETYPE_JPEG:
				if( $sendHeader )
					header( "Content-type: image/jpeg" );
				ImageJPEG( $resource, "", $quality );
				break;
			case IMAGETYPE_PNG:
				if( $sendHeader )
					header( "Content-type: image/png" );
				ImagePNG( $resource );
				break;
			default:
				throw new InvalidArgumentException( 'Invalid Image Type' );
		}
	}
public static function showImage ( $ resource , $ type = IMAGETYPE_PNG , $ quality = 100 , $ sendHeader = TRUE ) { switch ( $ type ) { case IMAGETYPE_GIF : if ( $ sendHeader ) header ( "Content-type: image/gif" ) ; ImageGIF ( $ resource ) ; break ; case IMAGETYPE_JPEG : if ( $ sendHeader ) header ( "Content-type: image/jpeg" ) ; ImageJPEG ( $ resource , "" , $ quality ) ; break ; case IMAGETYPE_PNG : if ( $ sendHeader ) header ( "Content-type: image/png" ) ; ImagePNG ( $ resource ) ; break ; default : throw new InvalidArgumentException ( 'Invalid Image Type' ) ; } }
Prints an Image to Screen statically.
@access		public
@static
@param		resource	$resource		Image Resource
@param		int			$type			Image Type
@param		int			$quality		JPEG Quality (1-100)
@param		bool		$showHeader		Flag: set Image MIME Type Header
@return		void
Prints an Image to Screen statically .