效果图:

public static void addWaterMark(File inputFile, File outputFile, String text) throws IOException {
Image image = ImageIO.read(inputFile);
int imgWidth = image.getWidth(null);// 获取图片的宽
int imgHeight = image.getHeight(null);// 获取图片的高
int angel = 315;//旋转角度
int xpadding = 40;//每个水印水平间隔
int ypadding = 40;//每个水印垂直间隔
int fontSize = 10;

最低0.47元/天 解锁文章
910

被折叠的 条评论
为什么被折叠?



