posted 13 years ago
Great, I was able to make it work!
However, it seems I must change some part of my implementation. When I run the following code it takes well over 20 seconds to load and display the image (1800x2800 pixels). Also, using my existing code for image scaling, an exception occurs which says that the image type (=0) is unknown.
However, the scaling works if I instead copy the data from the original image to another BufferedImage and apply the scalning transform on the latter. The image is now loaded and displayed almost instantly, even without scaling. But is there a better solution to this problem? The current work around feels kind of "ugly".
Thanks in advance
/Tomas