Hi, I'm trying to load a large list of images from my HD into an application using ImageIcon to get the images width and height, but I'm experiencing performance issues, without creating an Imagicon (so I don't get image attributes) it works really fast, but if I create an imageicon to get those attributes (I need them) it works so slow, anyone has a solution?? Thanks.
You don't need to create an ImageIcon to get the size from an Image. Why don't you use Image#getWidth and Image#getHeight?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: May 17, 2003
the only way I've found to create an image from a path is using imageicon. If you know how to do it without using it, please tell me. I haven't had much time to search...