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:
@@ -28,8 +28,8 @@ public class CaptchaTest {
|
||||
public void lineCaptchaTest3() {
|
||||
// 定义图形验证码的长和宽
|
||||
LineCaptcha lineCaptcha = CaptchaUtil.createLineCaptcha(200, 70, 4, 15);
|
||||
lineCaptcha.setBackground(Color.yellow);
|
||||
lineCaptcha.write("f:/test/captcha/tellow.png");
|
||||
lineCaptcha.setBackground(null);
|
||||
lineCaptcha.write("d:/test/captcha/tellow.png");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user