public class CaptchaUtil extends Object
Constructor and Description |
---|
CaptchaUtil() |
Modifier and Type | Method and Description |
---|---|
static CircleCaptcha |
createCircleCaptcha(int width,
int height)
创建圆圈干扰的验证码,默认5位验证码,15个干扰圈
|
static CircleCaptcha |
createCircleCaptcha(int width,
int height,
CodeGenerator generator,
int circleCount)
创建圆圈干扰的验证码
|
static CircleCaptcha |
createCircleCaptcha(int width,
int height,
int codeCount,
int circleCount)
创建圆圈干扰的验证码
|
static CircleCaptcha |
createCircleCaptcha(int width,
int height,
int codeCount,
int circleCount,
float size)
创建圆圈干扰的验证码
|
static GifCaptcha |
createGifCaptcha(int width,
int height)
创建GIF验证码
|
static GifCaptcha |
createGifCaptcha(int width,
int height,
CodeGenerator generator,
int thickness)
创建GIF验证码
|
static GifCaptcha |
createGifCaptcha(int width,
int height,
int codeCount)
创建GIF验证码
|
static GifCaptcha |
createGifCaptcha(int width,
int height,
int codeCount,
int thickness,
float size)
创建圆圈干扰的验证码
|
static LineCaptcha |
createLineCaptcha(int width,
int height)
创建线干扰的验证码,默认5位验证码,150条干扰线
|
static LineCaptcha |
createLineCaptcha(int width,
int height,
CodeGenerator generator,
int lineCount)
创建线干扰的验证码
|
static LineCaptcha |
createLineCaptcha(int width,
int height,
int codeCount,
int lineCount)
创建线干扰的验证码
|
static LineCaptcha |
createLineCaptcha(int width,
int height,
int codeCount,
int lineCount,
float size)
创建线干扰的验证码
|
static ShearCaptcha |
createShearCaptcha(int width,
int height)
创建扭曲干扰的验证码,默认5位验证码
|
static ShearCaptcha |
createShearCaptcha(int width,
int height,
CodeGenerator generator,
int thickness)
创建扭曲干扰的验证码,默认5位验证码
|
static ShearCaptcha |
createShearCaptcha(int width,
int height,
int codeCount,
int thickness)
创建扭曲干扰的验证码,默认5位验证码
|
static ShearCaptcha |
createShearCaptcha(int width,
int height,
int codeCount,
int thickness,
float size)
创建扭曲干扰的验证码,默认5位验证码
|
public static LineCaptcha createLineCaptcha(int width, int height)
width
- 图片宽height
- 图片高LineCaptcha
public static LineCaptcha createLineCaptcha(int width, int height, int codeCount, int lineCount)
width
- 图片宽height
- 图片高codeCount
- 字符个数lineCount
- 干扰线条数LineCaptcha
public static LineCaptcha createLineCaptcha(int width, int height, CodeGenerator generator, int lineCount)
width
- 图片宽height
- 图片高generator
- 验证码生成器lineCount
- 干扰线条数LineCaptcha
public static LineCaptcha createLineCaptcha(int width, int height, int codeCount, int lineCount, float size)
width
- 图片宽height
- 图片高codeCount
- 字符个数lineCount
- 干扰线条数size
- 字体的大小 高度的倍数LineCaptcha
public static CircleCaptcha createCircleCaptcha(int width, int height)
width
- 图片宽height
- 图片高CircleCaptcha
public static CircleCaptcha createCircleCaptcha(int width, int height, int codeCount, int circleCount)
width
- 图片宽height
- 图片高codeCount
- 字符个数circleCount
- 干扰圆圈条数CircleCaptcha
public static CircleCaptcha createCircleCaptcha(int width, int height, CodeGenerator generator, int circleCount)
width
- 图片宽height
- 图片高generator
- 验证码生成器circleCount
- 干扰圆圈条数CircleCaptcha
public static CircleCaptcha createCircleCaptcha(int width, int height, int codeCount, int circleCount, float size)
width
- 图片宽height
- 图片高codeCount
- 字符个数circleCount
- 干扰圆圈条数size
- 字体的大小 高度的倍数CircleCaptcha
public static ShearCaptcha createShearCaptcha(int width, int height)
width
- 图片宽height
- 图片高ShearCaptcha
public static ShearCaptcha createShearCaptcha(int width, int height, int codeCount, int thickness)
width
- 图片宽height
- 图片高codeCount
- 字符个数thickness
- 干扰线宽度ShearCaptcha
public static ShearCaptcha createShearCaptcha(int width, int height, CodeGenerator generator, int thickness)
width
- 图片宽height
- 图片高generator
- 验证码生成器thickness
- 干扰线宽度ShearCaptcha
public static ShearCaptcha createShearCaptcha(int width, int height, int codeCount, int thickness, float size)
width
- 图片宽height
- 图片高codeCount
- 字符个数thickness
- 干扰线宽度size
- 字体的大小 高度的倍数ShearCaptcha
public static GifCaptcha createGifCaptcha(int width, int height)
width
- 宽height
- 高GifCaptcha
public static GifCaptcha createGifCaptcha(int width, int height, int codeCount)
width
- 宽height
- 高codeCount
- 字符个数GifCaptcha
public static GifCaptcha createGifCaptcha(int width, int height, CodeGenerator generator, int thickness)
width
- 宽height
- 高generator
- 验证码生成器thickness
- 验证码干扰元素个数GifCaptcha
public static GifCaptcha createGifCaptcha(int width, int height, int codeCount, int thickness, float size)
width
- 图片宽height
- 图片高codeCount
- 字符个数thickness
- 验证码干扰元素个数size
- 字体的大小 高度的倍数GifCaptcha
Copyright © 2024. All rights reserved.