As IDE I use Intellij and as programming language Java. I want to load the images and save them in a project's folder same on Intellij
CodePudding user response:
You can read images using BufferedImage and ImageIO.read():
BufferedImage image = null;
try {
image = ImageIO.read(new File("yourpath/name.png"));
} catch (IOException e) {
}
And save it with ImageIO.write():
File outputfile = new File("yourpath/name.png");
ImageIO.write(image, "png", outputfile);