src/UI/Image/TransparentWatermark.php
public function displayImage( $image, $type) {
		switch ($type) {
			case 2:	//JPEG
			header("Content-Type: image/jpeg");
			Imagejpeg( $image);
			break;
			
			case 3:	//PNG
			header("Content-Type: image/png");
			Imagepng( $image);
			break;
			
			default:
			$this->errorMsg="File format not supported.";
		}
	}
public function displayImage( $image, $type) {
		switch ($type) {
			case 2:	//JPEG
			header("Content-Type: image/jpeg");
			Imagejpeg( $image);
			break;
			
			case 3:	//PNG
			header("Content-Type: image/png");
			Imagepng( $image);
			break;
			
			default:
			$this->errorMsg="File format not supported.";
		}
	}
public function displayImage ( $ image , $ type ) { switch ( $ type ) { case 2 : //JPEG
 header ( "Content-Type: image/jpeg" ) ; Imagejpeg ( $ image ) ; break ; case 3 : //PNG
 header ( "Content-Type: image/png" ) ; Imagepng ( $ image ) ; break ; default : $ this -> errorMsg = "File format not supported." ; } }
send image to stdout

@param resource $image  image
@param int $type  image type (2:JPEG or 3:PNG)
@return void
@access protected
@uses errorMsg
send image to stdout