mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
删除不必要的代码
This commit is contained in:
parent
0f2fc9f3ae
commit
cb368e2b6e
@ -1400,11 +1400,6 @@ public class ImgUtil {
|
|||||||
// 先用背景色填充整张图片,也就是背景
|
// 先用背景色填充整张图片,也就是背景
|
||||||
g.setColor(backgroundColor);
|
g.setColor(backgroundColor);
|
||||||
g.fillRect(0, 0, width, height);
|
g.fillRect(0, 0, width, height);
|
||||||
}else{
|
|
||||||
// 如果没有设置背景色,则设置为透明背景
|
|
||||||
g.dispose();
|
|
||||||
image = image.createGraphics().getDeviceConfiguration().createCompatibleImage(width, height, Transparency.TRANSLUCENT);
|
|
||||||
g = image.getGraphics();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g.setColor(ObjectUtil.defaultIfNull(fontColor, Color.BLACK));
|
g.setColor(ObjectUtil.defaultIfNull(fontColor, Color.BLACK));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user