Свойство | Тип | Описание | |
---|---|---|---|
$Xamplitude | |||
$Xperiod | |||
$Yamplitude | |||
$Yperiod | Wave configuracion in X and Y axes | ||
$backgroundColor | Background color in RGB-array | ||
$blur | Better image results with scale=3 | ||
$colors | Foreground colors in RGB-array | ||
$debug | Debug? | ||
$fonts | - font: TTF file - spacing: relative pixel space between character - minSize: min font size - maxSize: max font size | ||
$height | Height of the image | ||
$im | GD image | ||
$imageFormat | Image format: jpeg or png | ||
$maxRotation | letter rotation clockwise | ||
$maxWordLength | Used for dictionary words indicating the word-length for font-size modification purposes | ||
$minWordLength | Min word length (for non-dictionary random text generation) | ||
$scale | Internal image size factor (for better image quality) 1: low, 2: medium, 3: high | ||
$session_var | Sessionname to store the original text | ||
$shadowColor | Shadow color in RGB-array or false | ||
$transprent | |||
$width | Width of the image | ||
$wordsFile | Dictionary word file (empty for randnom text) |
Метод | Описание | |
---|---|---|
CreateImage ( ) | ||
GetDictionaryCaptchaText ( boolean $extended = false ) : string | Random dictionary word generation | |
__construct ( $config = [] ) |
Метод | Описание | |
---|---|---|
Cleanup ( ) | Cleanup | |
GetCaptchaText ( ) : string | Text generation | |
GetRandomCaptchaText ( $length = null ) : string | Random text generation | |
ImageAllocate ( ) | Creates the image resources | |
ReduceImage ( ) | Reduce the image to the final size | |
WaveImage ( ) | Wave filter | |
WriteImage ( ) | File generation | |
WriteText ( $text, $fontcfg = [] ) | Text insertion |
protected GetCaptchaText ( ) : string | ||
Результат | string | Text |
public GetDictionaryCaptchaText ( boolean $extended = false ) : string | ||
$extended | boolean | Add extended "fake" words |
Результат | string | Word |
protected GetRandomCaptchaText ( $length = null ) : string | ||
Результат | string | Text |
public $fonts |
public $maxWordLength |
public $minWordLength |
public $scale |