src/UI/Image/TransparentWatermark.php
public function readImage( $file, $type) {
		switch ($type) {
			case 2:	//JPEG
			return(ImageCreateFromJPEG($file));
			break;
			
			case 3:	//PNG
			return(ImageCreateFromPNG($file));
			break;
			
			default:
			$this->errorMsg="File format not supported.";
			return(false);
		}
	}
public function readImage( $file, $type) {
		switch ($type) {
			case 2:	//JPEG
			return(ImageCreateFromJPEG($file));
			break;
			
			case 3:	//PNG
			return(ImageCreateFromPNG($file));
			break;
			
			default:
			$this->errorMsg="File format not supported.";
			return(false);
		}
	}
public function readImage ( $ file , $ type ) { switch ( $ type ) { case 2 : //JPEG
 return ( ImageCreateFromJPEG ( $ file ) ) ; break ; case 3 : //PNG
 return ( ImageCreateFromPNG ( $ file ) ) ; break ; default : $ this -> errorMsg = "File format not supported." ; return ( false ) ; } }
read image from file

@param string $file  image file (JPEG or PNG)
@param int $type  file type (2:JPEG or 3:PNG)
@return resource
@access protected
@uses errorMsg
read image from file