mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
Captcha.setBackground为null时背景透明
This commit is contained in:
parent
1b4fb6d8e4
commit
060296167b
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user