public class ChineseCaptcha extends AbstractCaptcha
background, code, codeChar, color, font, generator, height, imageBytes, imageType, interfereCount, len, mimeType, textAlpha, width| 构造器和说明 |
|---|
ChineseCaptcha(CaptchaDetails captchaDetails) |
ChineseCaptcha(int width,
int height,
int len) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Image |
createImage(char[] code)
根据生成的code创建验证码图片
|
protected void |
createImageGif(char[] code)
创建验证码gif图
|
BufferedImage |
graphicsImage(Color[] fontColor,
char[] strs,
int flag,
int[][] besselXY)
画随机码图
|
create, generateCode, getAlpha, getAlpha, getGenerator, getImage, getImageBase64, getImageBase64Data, getImageBytes, getMimeType, getText, num, num, setBackground, setFont, setGenerator, setTextAlpha, verify, write, write, writepublic ChineseCaptcha(int width,
int height,
int len)
public ChineseCaptcha(CaptchaDetails captchaDetails)
protected Image createImage(char[] code)
AbstractCaptchacreateImage 在类中 AbstractCaptchacode - 验证码protected void createImageGif(char[] code)
AbstractCaptchacreateImageGif 在类中 AbstractCaptchacode - 验证码public BufferedImage graphicsImage(Color[] fontColor, char[] strs, int flag, int[][] besselXY)
graphicsImage 在类中 AbstractCaptchafontColor - 随机字体颜色strs - 字符数组flag - 透明度besselXY - 干扰线参数Copyright © 2022. All rights reserved.