\FCCaptcha

Summary

Methods
Properties
Constants
getCode()
doImg()
$width
$height
$nums
$random
$font_size
$font_path
$is_gif
$gif_fps
No constants found
No protected methods found
No protected properties found
N/A
creBackGIF()
createImageSource()
setBackGroundColor()
setRandomCode()
getChar()
setCode()
setVerNumber()
No private properties found
N/A

Properties

$width

$width

$height

$height

$nums

$nums

$random

$random

$font_size

$font_size

$font_path

$font_path

$is_gif

$is_gif

$gif_fps

$gif_fps

Methods

getCode()

getCode() : void

获取验证码

doImg()

doImg(mixed  $code = '') : void

生成验证码

Parameters

mixed $code

creBackGIF()

creBackGIF(mixed  $code) : void

创建动态背景

Parameters

mixed $code

createImageSource()

createImageSource() : void

创建个画布

setBackGroundColor()

setBackGroundColor(mixed  $im) : void

设置背景颜色

Parameters

mixed $im

setRandomCode()

setRandomCode(mixed  $im) : string

加入随机数

Parameters

mixed $im

Returns

string —

getChar()

getChar() : string

随机中文字符串

Returns

string —

setCode()

setCode(mixed  $im, mixed  $string) : void

画布上生成验证码

Parameters

mixed $im
mixed $string

setVerNumber()

setVerNumber() : void

生成随机码,(支持中文)