Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void writeImage(BufferedImage image, File file) throws IOException {
- //Slow
- ImageIO.write(image, "PNG", file);
- //Faster, but hopefully there's no transparency on the image
- ImageIO.write(image, "JPG", file);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement