I have some code which generates images and saves them. It does this with a BufferedImage and the images can range from 1x1 all the way to 8000x8000.
I save my BufferedImage using the following code:
ImageIO.write(image, "png", outputfile);
When I am generating the image it calculates a percentage to show the user.
How do I get the percentage a BufferedImage is saved? Also how do I use this percentage to and it to the overall percentage for something else?
This question provides an answer to what I want, but I have a hard time understanding it and when I use the code given. I can not get it to work.