[quote] Yes, I can see that it might matter for a huge animated GIF, but I bet it would solve more problems than it caused if image loading was simply not asynchronous.
[/quote]
Those apis were developed a long, long time ago (in a galaxy far, far away).
Also, there are advantages to async image loading, for cases when you load your images from a url on a remote server - you don’t want your call blocked. Or, imagine some service which generates gif frames (like a streaming movie). A sync call will never be complete.
So, obviously, for backward compatibility reasons, the imageio based implementation will have to be async.
Then, there’s my favorite ImageProducer/Consumer stuff. Don’t get me started…
But I agree, I’d very much like to see toolkit image loading to be implemented on top of imageio. For one, it’ll support more image formats, less code to support, etc.
