\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

$maxWordLength

$maxWordLength

$backgroundColor

$backgroundColor

* Background color in RGB-array

$colors

$colors

* Foreground colors in RGB-array

$shadowColor

$shadowColor

* Shadow color in RGB-array or null

$fonts

$fonts

Font configuration

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

$Yperiod

$Yperiod

* Wave configuracion in X and Y axes

$Yamplitude

$Yamplitude

$Xperiod

$Xperiod

$Xamplitude

$Xamplitude

$im

$im

* GD image

Methods

drawImage()

drawImage(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ImageAllocate()

ImageAllocate() : mixed

Creates the image resources

Returns

mixed —

WriteText()

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

Text insertion

Parameters

mixed $text
mixed $fontcfg

Returns

mixed —

WaveImage()

WaveImage() : mixed

Wave filter

Returns

mixed —

ReduceImage()

ReduceImage() : mixed

Reduce the image to the final size

Returns

mixed —