public class Captcha extends AbstractCaptcha
通用的验证码
| 构造器和说明 |
|---|
Captcha() |
Captcha(int width,
int height) |
Captcha(int width,
int height,
CaptchaType type) |
Captcha(int width,
int height,
CaptchaType type,
java.awt.Font font) |
Captcha(int width,
int height,
CaptchaType type,
java.awt.Font font,
int length) |
Captcha(int width,
int height,
CaptchaType type,
int length) |
Captcha(int width,
int height,
int length) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
drawImage(char[] chars,
java.io.OutputStream output) |
void |
render(java.io.OutputStream out)
渲染验证码图片并通过输出流输出图片
|
java.lang.String |
toBase64()
将图片转换为Base64格式字符串
|
captcha, checkCode, color, color, drawBezierLine, drawBezierLine, drawLine, drawLine, drawOval, drawOval, getCaptchaCode, getCode, getExpr, getFont, getHeight, getLength, getType, getWidth, nextChar, nextChar, nextInt, nextInt, setFont, setHeight, setLength, setType, setWidth, text, toBase64public Captcha()
public Captcha(int width,
int height)
public Captcha(int width,
int height,
int length)
public Captcha(int width,
int height,
CaptchaType type)
public Captcha(int width,
int height,
CaptchaType type,
int length)
public Captcha(int width,
int height,
CaptchaType type,
java.awt.Font font)
public Captcha(int width,
int height,
CaptchaType type,
java.awt.Font font,
int length)
public void render(java.io.OutputStream out)
AbstractCaptcharender 在类中 AbstractCaptchaout - 输出流public java.lang.String toBase64()
AbstractCaptchatoBase64 在类中 AbstractCaptchapublic void drawImage(char[] chars,
java.io.OutputStream output)
Copyright © 2020. All Rights Reserved.