src/UI/Image/TransparentWatermark.php
public function setStamp( $stampFile) {
		$imageinfos = @getimagesize($stampFile);
		$width  = $imageinfos[0];
		$height = $imageinfos[1];
		$type   = $imageinfos[2];
		
		if ($this->stampImage) imagedestroy( $this->stampImage);
		
		$this->stampImage=$this->readImage($stampFile, $type);
		
		if (!$this->stampImage) {
			$this->errorMsg="Error on loading '$stampFile', stamp image must be a valid PNG or JPEG file.";
			return(false);
		}
		else {
			$this->stampWidth=$width;
			$this->stampHeight=$height;
			return(true);
		}
	}
public function setStamp( $stampFile) {
		$imageinfos = @getimagesize($stampFile);
		$width  = $imageinfos[0];
		$height = $imageinfos[1];
		$type   = $imageinfos[2];
		
		if ($this->stampImage) imagedestroy( $this->stampImage);
		
		$this->stampImage=$this->readImage($stampFile, $type);
		
		if (!$this->stampImage) {
			$this->errorMsg="Error on loading '$stampFile', stamp image must be a valid PNG or JPEG file.";
			return(false);
		}
		else {
			$this->stampWidth=$width;
			$this->stampHeight=$height;
			return(true);
		}
	}
public function setStamp ( $ stampFile ) { $ imageinfos = @ getimagesize ( $ stampFile ) ; $ width = $ imageinfos [ 0 ] ; $ height = $ imageinfos [ 1 ] ; $ type = $ imageinfos [ 2 ] ; if ( $ this -> stampImage ) imagedestroy ( $ this -> stampImage ) ; $ this -> stampImage = $ this -> readImage ( $ stampFile , $ type ) ; if ( ! $ this -> stampImage ) { $ this -> errorMsg = "Error on loading '$stampFile', stamp image must be a valid PNG or JPEG file." ; return ( false ) ; } else { $ this -> stampWidth = $ width ; $ this -> stampHeight = $ height ; return ( true ) ; } }
set stamp image for watermak

@param string $stampFile  image file (JPEG or PNG)
@return boolean
@access public
@uses readImage()
@uses stampImage
@uses stampWidth
@uses stampHeight
@uses errorMsg
set stamp image for watermak