优化验证码的效果和干扰

This commit is contained in:
synchronized
2018-07-27 15:52:40 +08:00
parent 32d8b6d956
commit 4d3d5b4e71
3 changed files with 110 additions and 95 deletions

View File

@@ -15,13 +15,13 @@ public class CaptchaTest {
public void test() throws Exception {
SpecCaptcha specCaptcha = new SpecCaptcha();
System.out.println(specCaptcha.text());
specCaptcha.out(new FileOutputStream(new File("D:/a/aa.png")));
//specCaptcha.out(new FileOutputStream(new File("D:/a/aa.png")));
}
@Test
public void testGIf() throws Exception {
GifCaptcha specCaptcha = new GifCaptcha(130, 48, 5);
System.out.println(specCaptcha.text());
specCaptcha.out(new FileOutputStream(new File("D:/a/aa.gif")));
//specCaptcha.out(new FileOutputStream(new File("D:/a/aa.gif")));
}
}