public class CircleProvider extends AbstractProvider
background, code, font, generator, height, imageBytes, interfereCount, textAlpha, width| Constructor and Description |
|---|
CircleProvider(int width,
int height)
构造
|
CircleProvider(int width,
int height,
int codeCount)
构造
|
CircleProvider(int width,
int height,
int codeCount,
int interfereCount)
构造
|
| Modifier and Type | Method and Description |
|---|---|
Image |
createImage(String code)
根据生成的code创建验证码图片
|
create, generateCode, get, getGenerator, getImage, getImageBase64, getImageBytes, setBackground, setFont, setGenerator, setTextAlpha, verify, write, write, writepublic CircleProvider(int width,
int height)
width - 图片宽height - 图片高public CircleProvider(int width,
int height,
int codeCount)
width - 图片宽height - 图片高codeCount - 字符个数public CircleProvider(int width,
int height,
int codeCount,
int interfereCount)
width - 图片宽height - 图片高codeCount - 字符个数interfereCount - 验证码干扰元素个数public Image createImage(String code)
AbstractProvidercreateImage in class AbstractProvidercode - 验证码Copyright © 2020. All rights reserved.