Dave's Brain

Browse - Programming Tips - How can I read/write more image formats?

Date: 2017feb6
Language: Java

Q.  How can I read/write more image formats?

A.  The Java ImageIO library can read GIF, PNG, JPEG, BMP, WBMP.
And with plugins can do many more.
https://docs.oracle.com/javase/tutorial/2d/images/loadimage.html

On Android, use BitmapFactory which doesn't support so many formats.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.