JAI vs. ImageIO
I just found an excellent example to view a long PNG using DisplayJAI in a scrollpane. This just uses classes from the jai_codec.jar and jai_core.jar and no native code needed so still pure java. VERY IMPRESSIVE faster than my current implementation.
Now, has any of you a link to some FAQ's/comparison table which helps me to answer the question:
What can you do with the basic ImageIO package in JDK 6 versus when do you need to go to JAI ?
The reason is of course some layzness from my side (I admit) as I now have a working test app which does what I want but I cannot get my head around if I could do something similar (aka read long PNG into a JScollPane other than the naive solution of creating an ImageIcon and stick it into a JLabel) with the ImageIO stuff shipped with JDK 6 ? I have found code which do split a PNG into chunks and I could do my own caching by that, but it seems rather cumbersome and I wonder if all are as lazy as I am and just jump using JAI just because of its already simple build in caching ?
Happy new year to all of you