Class Giscuit_Filter_ProtectImage

Description

Class for watermarking images

  • copyright: Copyright (c) 2012 VEC

Located in /Filter/ProtectImage.php (line 28)


	
			
Method Summary
 __construct ([ $options = array()]) void
 filter (mixed $img, [array $options = null]) mixed
 _drawText (string $text, integer $fontSize) mixed
 _spamImage (mixed $img, mixed $mask, [integer $opacity = 100]) mixed
Methods
Constructor __construct (line 37)

Sets filter options

  • access: public
void __construct ([ $options = array()])
  • array $options: Available options
filter (line 55)

Defined by Zend_Filter_Interface

Watermark your image

Available options: text => string - Watermark text; dpi => integer - Image resolution;

  • access: public
mixed filter (mixed $img, [array $options = null])
  • mixed $img: Image resource
  • array $options: Available options
_drawText (line 96)

Draw $text on the image

  • access: protected
mixed _drawText (string $text, integer $fontSize)
  • string $text: Text to draw
  • integer $fontSize: Font size
_spamImage (line 137)

Fill the image with text

  • access: protected
mixed _spamImage (mixed $img, mixed $mask, [integer $opacity = 100])
  • mixed $img: Input image resource
  • mixed $mask: Text's image resource
  • integer $opacity: Text's image opacity

Documentation generated on Wed, 28 May 2014 08:33:22 +0000 by phpDocumentor 1.4.3