Can a BufferedImage be written to file any format?
-
23-09-2019 - |
문제
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.
올바른 솔루션이 없습니다
다른 팁
A BufferedImage can be written into any format that ImageIO.write supports (that is, has an ImageWriter available), yes. Please show the code if you can't get it to work.
제휴하지 않습니다 StackOverflow