|
Replies:
1
-
Last Post:
Dec 4, 2008 6:30 PM
by: Bob Deen
|
Threads:
[
Previous
|
Next
]
|
|
|
|
|
|
JAI, JAI_ImageIO, or ImageIO ?
Posted:
Nov 29, 2008 3:54 PM
|
|
|
I am a bit confused as to which API I should be learning / using. I am trying to create a swing app that displays scaled thumbnails in a list; when the user selects a thumbnail in the list, a larger version should be displayed in another JPanel.
I've experimented with JAI and ImageIO, as well as the standard ImageIcon... but what should I be using? I know this question is vague, so any explanations are appreciated.
|
|
|
|
|
|
|
Re: [JAI] JAI, JAI_ImageIO, or ImageIO ?
Posted:
Dec 4, 2008 6:30 PM
in response to: asailer
|
|
|
All three. 
Use imageio and more importantly the jai imageio tools to load images. There's a "codec" mechanism built in to JAI, but it's old and should not be used for new code. The new "imageread" (and "imagewrite") operators in the iio tools will help a lot. imageio itself is built in to the JDK, but iio-tools is something you have to download (separate from JAI, but you'll want JAI as well).
You may not really need JAI for such a simple app but it provides a lot of capability which might be helpful. And the imageread operator is easier to use than the direct imageio API.
As for display, there's a rudimentary display class included as part of JAI (it's not in the committed API though). However, you might look at JadeDisplay. It's open source, and very capable... probably overkill for what you need but it gives you room to grow. (yes this is a plug for my code... )
http://www.openchannelfoundation.org/projects/JadeDisplay
Good luck...
-Bob Deen @ NASA-JPL Multimission Image Processing Lab Bob.Deen@jpl.nasa.gov
jai-interest@javadesktop.org wrote: > I am a bit confused as to which API I should be learning / using. I am trying to create a swing app that displays scaled thumbnails in a list; when the user selects a thumbnail in the list, a larger version should be displayed in another JPanel. > > I've experimented with JAI and ImageIO, as well as the standard ImageIcon... but what should I be using? I know this question is vague, so any explanations are appreciated. > [Message sent by forum member 'asailer' (asailer)] > > http://forums.java.net/jive/thread.jspa?messageID=319195 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net > For additional commands, e-mail: interest-help@jai.dev.java.net >
--------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net For additional commands, e-mail: interest-help@jai.dev.java.net
|
|
|
|
|