Can a BufferedImage be written to file any format?

前端 未结 1 1300
醉酒成梦
醉酒成梦 2021-01-26 04:33

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 tr

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-26 05:18

    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.

    0 讨论(0)
提交回复
热议问题