\LtCaptchaImageEngine

Lotus Captcha component is inspired by "cool-php-captcha" project http://code.google.com/p/cool-php-captcha

Summary

Methods
Properties
Constants
drawImage()
$conf
No constants found
ImageAllocate()
WriteText()
WaveImage()
ReduceImage()
$maxWordLength
$backgroundColor
$colors
$shadowColor
$fonts
$Yperiod
$Yamplitude
$Xperiod
$Xamplitude
$im
N/A
No private methods found
No private properties found
N/A

Properties

$conf

$conf : 

Type

$maxWordLength

$maxWordLength : 

Type

$backgroundColor

$backgroundColor : 

* Background color in RGB-array

Type

$colors

$colors : 

* Foreground colors in RGB-array

Type

$shadowColor

$shadowColor : 

* Shadow color in RGB-array or null

Type

$fonts

$fonts : 

Font configuration

  • font: TTF file
  • spacing: relative pixel space between character
  • minSize: min font size
  • maxSize: max font size

Type

$Yperiod

$Yperiod : 

* Wave configuracion in X and Y axes

Type

$Yamplitude

$Yamplitude : 

Type

$Xperiod

$Xperiod : 

Type

$Xamplitude

$Xamplitude : 

Type

$im

$im : 

* GD image

Type

Methods

drawImage()

drawImage(  $text) 

Parameters

$text

ImageAllocate()

ImageAllocate() 

Creates the image resources

WriteText()

WriteText(  $text,   $fontcfg = array()) 

Text insertion

Parameters

$text
$fontcfg

WaveImage()

WaveImage() 

Wave filter

ReduceImage()

ReduceImage() 

Reduce the image to the final size