java图片去掉水印
代码
import javax.imageio.ImageIO;
import javax.imageio.ImageWriter;
import javax.imageio.stream.ImageOutputStream;
import javax.net.ssl.HttpsURLConnection;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Scanner;
public class AAAA {
private static List fileList = new ArrayList();
public static void main(String[] args) {
//图片所在的根目录 , 图片去除水印后的存储目录
convertAllImages(“D:\江西\江西.jpg”, “D:\IcPhoto1\江西.jpg”); //支持批量去除图片水印
}
private static void convertAllImages(String dir, String saveDir) {
File dirFile = new File(dir);
File saveDirFile =