Commit 1634a984 authored by 周健威's avatar 周健威

修改代码

parent c9b648e7
......@@ -91,8 +91,8 @@ public class UploadService {
Float scale = 320f / bufferedImage.getHeight();
Image newImage = ImgUtil.scale(bufferedImage, scale);
//加水印
Font font = new Font("宋体",Font.BOLD,20);
Image newImage2 = ImgUtil.pressText(bufferedImage, "人民星云", Color.BLACK, font, 0, 0, 0.5f);
Font font = new Font("宋体",Font.BOLD,32);
Image newImage2 = ImgUtil.pressText(newImage, "人民星云", Color.WHITE, font, 0, 0, 0.8f);
//将文件写入指定位置
ImgUtil.write(newImage2, new File(filePath));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment