public class ImageVerification extends Object
| 构造器和说明 |
|---|
ImageVerification() |
ImageVerification(int imageVerificationLength,
CaptchaGener captchaGener) |
| 限定符和类型 | 方法和说明 |
|---|---|
BufferedImage |
creatImage()
绘制图形
|
Color |
getRandColor(int b,
int e) |
int |
getRandInt(int b,
int e) |
String |
getVerifyCode()
获取验证码,需要在绘制图片之后调用
|
void |
setCaptchaGener(CaptchaGener captchaGener) |
void |
setImageVerificationLength(int imageVerificationLength) |
public ImageVerification()
public ImageVerification(int imageVerificationLength,
CaptchaGener captchaGener)
public void setImageVerificationLength(int imageVerificationLength)
public BufferedImage creatImage()
public Color getRandColor(int b, int e)
public int getRandInt(int b,
int e)
public String getVerifyCode()
public void setCaptchaGener(CaptchaGener captchaGener)
Copyright © 2020. All rights reserved.