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

优化验证码效果

This commit is contained in:
synchronized 2018-07-30 13:11:06 +08:00
parent 92af7138a9
commit 883f541aa5

View File

@ -17,7 +17,7 @@ public class CaptchaTest {
SpecCaptcha specCaptcha = new SpecCaptcha();
//specCaptcha.setCharType(Captcha.TYPE_ONLY_NUMBER);
System.out.println(specCaptcha.text());
specCaptcha.out(new FileOutputStream(new File("D:/Java/aa" + i + ".png")));
//specCaptcha.out(new FileOutputStream(new File("D:/Java/aa" + i + ".png")));
}
}
@ -26,7 +26,7 @@ public class CaptchaTest {
for (int i = 0; i < 5; i++) {
GifCaptcha gifCaptcha = new GifCaptcha();
System.out.println(gifCaptcha.text());
gifCaptcha.out(new FileOutputStream(new File("D:/Java/aa" + i + ".gif")));
//gifCaptcha.out(new FileOutputStream(new File("D:/Java/aa" + i + ".gif")));
}
}
@ -35,7 +35,7 @@ public class CaptchaTest {
ChineseCaptcha chineseCaptcha = new ChineseCaptcha();
//chineseCaptcha.setFont(new Font("微软雅黑", Font.PLAIN, 25));
System.out.println(chineseCaptcha.text());
chineseCaptcha.out(new FileOutputStream(new File("D:/Java/aa.png")));
//chineseCaptcha.out(new FileOutputStream(new File("D:/Java/aa.png")));
}
@Test
@ -43,7 +43,7 @@ public class CaptchaTest {
ChineseGifCaptcha chineseGifCaptcha = new ChineseGifCaptcha();
//chineseGifCaptcha.setFont(new Font("微软雅黑", Font.PLAIN, 30));
System.out.println(chineseGifCaptcha.text());
chineseGifCaptcha.out(new FileOutputStream(new File("D:/Java/aa.gif")));
//chineseGifCaptcha.out(new FileOutputStream(new File("D:/Java/aa.gif")));
}
}