public static final class CaptchaInfo.CaptchaInfoBuild extends Object
| 构造器和说明 |
|---|
CaptchaInfoBuild() |
| 限定符和类型 | 方法和说明 |
|---|---|
CaptchaDetails |
build() |
CaptchaInfo.CaptchaInfoBuild |
color(Color color)
设置验证码的颜色
|
CaptchaInfo.CaptchaInfoBuild |
font(Font font)
设置验证码的字体
|
CaptchaInfo.CaptchaInfoBuild |
imageType(int imageType)
图片类型
|
CaptchaInfo.CaptchaInfoBuild |
interfereCount(int interfereCount) |
CaptchaInfo.CaptchaInfoBuild |
size(int len,
int width,
int height)
设置验证码的边框大小及字符个数
|
CaptchaInfo.CaptchaInfoBuild |
type(int type)
是否添加混淆曲线
|
public CaptchaInfo.CaptchaInfoBuild size(int len, int width, int height)
len - 字符个数width - 长度height - 宽度CaptchaInfo.CaptchaInfoBuildpublic CaptchaInfo.CaptchaInfoBuild font(Font font)
font - 字体CaptchaInfo.CaptchaInfoBuildpublic CaptchaInfo.CaptchaInfoBuild color(Color color)
color - 颜色CaptchaInfo.CaptchaInfoBuildpublic CaptchaInfo.CaptchaInfoBuild type(int type)
public CaptchaInfo.CaptchaInfoBuild interfereCount(int interfereCount)
public CaptchaInfo.CaptchaInfoBuild imageType(int imageType)
imageType - 图片类型CaptchaInfo.CaptchaInfoBuildpublic CaptchaDetails build()
Copyright © 2022. All rights reserved.