Can a BufferedImage be written to file any format?
Posted
by ncoder
on Stack Overflow
See other posts from Stack Overflow
or by ncoder
Published on 2010-03-30T06:42:41Z
Indexed on
2010/03/30
6:53 UTC
Read the original article
Hit count: 358
Is it correct that if we have a BufferedImage object in java, we could potentially write it out in ANY format using ImageIO.write (if we have a Writer object for the same)? I tried writing a BufferedImage object into a jpg file, it outputted an empty image file however when i tried writing it in to a png file, it worked fine.
© Stack Overflow or respective owner