删除不必要的代码

This commit is contained in:
hiqiuyi 2022-08-01 15:43:17 +08:00
parent 0f2fc9f3ae
commit cb368e2b6e

View File

@ -1400,11 +1400,6 @@ public class ImgUtil {
// 先用背景色填充整张图片,也就是背景
g.setColor(backgroundColor);
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));