mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
Captcha.setBackground为null时背景透明
This commit is contained in:
@@ -44,6 +44,15 @@ public class CaptchaTest {
|
|||||||
lineCaptcha.write("f:/test/captcha/tellow.png");
|
lineCaptcha.write("f:/test/captcha/tellow.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Disabled
|
||||||
|
public void noBackgroundCaptchaTest() {
|
||||||
|
// 定义图形验证码的长和宽
|
||||||
|
final LineCaptcha lineCaptcha = CaptchaUtil.ofLineCaptcha(200, 70, 4, 15);
|
||||||
|
lineCaptcha.setBackground(null);
|
||||||
|
lineCaptcha.write("d:/test/captcha/tellow.png");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Disabled
|
@Disabled
|
||||||
public void lineCaptchaWithMathTest() {
|
public void lineCaptchaWithMathTest() {
|
||||||
|
Reference in New Issue
Block a user