public class AnimCaptcha extends AbstractCaptcha
基于GIF的动画验证码
| 构造器和说明 |
|---|
AnimCaptcha() |
AnimCaptcha(int width,
int height) |
AnimCaptcha(int width,
int height,
CaptchaType type) |
AnimCaptcha(int width,
int height,
CaptchaType type,
java.awt.Font font) |
AnimCaptcha(int width,
int height,
CaptchaType type,
java.awt.Font font,
int length) |
AnimCaptcha(int width,
int height,
CaptchaType type,
int length) |
AnimCaptcha(int width,
int height,
int length) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.awt.image.BufferedImage |
drawImage(java.awt.Color[] colors,
char[] chars,
int index,
int[][] bezier) |
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 AnimCaptcha()
public AnimCaptcha(int width,
int height)
public AnimCaptcha(int width,
int height,
int length)
public AnimCaptcha(int width,
int height,
CaptchaType type)
public AnimCaptcha(int width,
int height,
CaptchaType type,
int length)
public AnimCaptcha(int width,
int height,
CaptchaType type,
java.awt.Font font)
public AnimCaptcha(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 java.awt.image.BufferedImage drawImage(java.awt.Color[] colors,
char[] chars,
int index,
int[][] bezier)
Copyright © 2020. All Rights Reserved.