src/UI/Image/TransparentWatermark.php
public function writeImage( $image, $file, $type) {
		switch ($type) {
			case 2:	//JPEG
			Imagejpeg( $image, $file);
			break;
			
			case 3:	//PNG
			Imagepng( $image, $file);
			break;
			
			default:
			$this->errorMsg="File format not supported.";
		}
	}
public function writeImage( $image, $file, $type) {
		switch ($type) {
			case 2:	//JPEG
			Imagejpeg( $image, $file);
			break;
			
			case 3:	//PNG
			Imagepng( $image, $file);
			break;
			
			default:
			$this->errorMsg="File format not supported.";
		}
	}
public function writeImage ( $ image , $ file , $ type ) { switch ( $ type ) { case 2 : //JPEG
 Imagejpeg ( $ image , $ file ) ; break ; case 3 : //PNG
 Imagepng ( $ image , $ file ) ; break ; default : $ this -> errorMsg = "File format not supported." ; } }
write image to file

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