Commit 6cf79117 authored by 周健威's avatar 周健威

修改代码

parent 7449f7b4
......@@ -91,7 +91,7 @@ public class UploadService {
Float scale = 320f / bufferedImage.getHeight();
Image newImage = ImgUtil.scale(bufferedImage, scale);
//加水印
Image newImage2 = ImgUtil.pressText(newImage, "人民星云", Color.WHITE, null, 0, 0, 1.0f);
Image newImage2 = ImgUtil.pressText(newImage, "人民星云", Color.BLACK, null, 0, 0, 0.5f);
//将文件写入指定位置
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