1
0
mirror of https://github.com/whvcse/EasyCaptcha.git synced 2024-11-23 10:09:19 +08:00

增加验证码类型设置功能(纯数字、纯字母)

This commit is contained in:
synchronized 2018-07-27 17:20:37 +08:00
parent 71e73ee516
commit fda509dfe3

View File

@ -182,7 +182,7 @@ public class Test {
public class Test { public class Test {
public static void main(String[] args) { public static void main(String[] args) {
OutputStream outputStream = new FileOutputStream(new File("D:/a/aa.gif")); OutputStream outputStream = new FileOutputStream(new File("D:/a/aa.png"));
// 三个参数分别为宽、高、位数 // 三个参数分别为宽、高、位数
SpecCaptcha specCaptcha = new SpecCaptcha(130, 48, 5); SpecCaptcha specCaptcha = new SpecCaptcha(130, 48, 5);