Loading an image in Java without AWT
I am on an embedded platform without access to AWT. I was wondering if anyone knew of a standalone library to load images withou开发者_开发技巧t any AWT involvement.
Thanks, Braden McDorman
Perhaps AWT headless mode can help?
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/
I took the semi-easy way out and created a tool to convert images to RGB565 raw files. Then I have a custom loader.
Have a look at JIMI.
http://java.sun.com/products/jimi/
Easy to work with, bought by Sun, superceeded by JAI which is not as easy to work with.
(And now the page is Oracle-branded...)
Not a standalone library and not sure what your platform offers, but you can try the javax.imageio.ImageIO (Java SE 1.4 and later).
Just use one of the read
methods to get a BufferedImage
.
精彩评论