|
|
|
@@ -42,7 +42,7 @@ public class ImgYwsqhUtil { |
|
|
|
InputStream backImgUrl = resource.getInputStream(); |
|
|
|
|
|
|
|
BufferedImage backImg = ImageIO.read(backImgUrl); |
|
|
|
backImgUrl.close(); |
|
|
|
// backImgUrl.close(); |
|
|
|
Graphics g = backImg.getGraphics(); |
|
|
|
|
|
|
|
Font fTxtBottom = new Font("微软雅黑", Font.PLAIN, 70); |
|
|
|
@@ -111,7 +111,7 @@ public class ImgYwsqhUtil { |
|
|
|
ByteArrayOutputStream out = new ByteArrayOutputStream(); |
|
|
|
ImageIO.write(backImg, "png", out); |
|
|
|
byte[] bytes = out.toByteArray(); |
|
|
|
out.close(); |
|
|
|
// out.close(); |
|
|
|
return bytes; |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
|