public class CaptchaBase64 extends Object
| 构造器和说明 |
|---|
CaptchaBase64(String type) |
CaptchaBase64(String type,
Integer width,
Integer height,
Integer defaultLength) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
getArithmeticCaptcha() |
void |
getArithmeticCaptcha(int width,
int height,
int len)
生成算数验证码,并以Base64形式返回
指定验证码的宽度和高度
|
String |
getCaptcha() |
void |
getCharCaptcha()
生成字符验证码,并以Base64形式返回
默认以 width-130,height-48尺寸 5位字符输出
|
void |
getCharCaptcha(int width,
int height,
int len)
生成字符验证码,并以Base64形式返回
|
public CaptchaBase64(String type)
public String getCaptcha()
public void getArithmeticCaptcha()
public void getArithmeticCaptcha(int width,
int height,
int len)
width - 尺寸-宽度pxheight - 尺寸-高度pxlen - 几位数运算public void getCharCaptcha()
public void getCharCaptcha(int width,
int height,
int len)
width - 尺寸-宽度pxheight - 尺寸-高度pxlen - 字符位数Copyright © 2025. All rights reserved.