Package | Description |
---|---|
org.dromara.hutool.swing.captcha |
图片验证码实现
|
Modifier and Type | Method and Description |
---|---|
static GifCaptcha |
CaptchaUtil.ofGifCaptcha(int width,
int height)
创建GIF验证码
|
static GifCaptcha |
CaptchaUtil.ofGifCaptcha(int width,
int height,
int codeCount)
创建GIF验证码
|
static GifCaptcha |
CaptchaUtil.ofGifCaptcha(int width,
int height,
int codeCount,
int thickness,
float sizeBaseHeight)
创建圆圈干扰的验证码
|
GifCaptcha |
GifCaptcha.setMaxColor(int maxColor)
设置验证码字符最大取色范围
|
GifCaptcha |
GifCaptcha.setMinColor(int minColor)
设置验证码字符最小取色范围
|
GifCaptcha |
GifCaptcha.setQuality(int quality)
设置图像的颜色量化(转换质量 由GIF规范允许的最大256种颜色)。
|
GifCaptcha |
GifCaptcha.setRepeat(int repeat)
设置GIF帧应该播放的次数。
|
Copyright © 2025. All rights reserved.