|
|
On 07.Mär 2005 - 03:39:56, Francesco Lamonica wrote:
> I need to create a filedialog that shows thumbnails, but since the
> images are _huge_ (3000x2000 ~2mb large) it takes forever if i try to
> load them with QImage and then scale them down to thumbnail size. Any
> idea how can i speed it up?
Don't use QImage, use ijg code to load the images if they're jpegs.
For other formats check wether you can get some other lib. These
often also give you the possibility to resize the image and
afterwards you can create a QPixmap or QImage from the raw data in
memory. Look at current albumshaper CVS (albumshaper.,sourceforge.net)
the author told me that he is doing it this way.
You can also try to divide the image into smaller tiles and load each
of them separately, so the thumbnail is builded while the user views
it.
Andreas
--
You're currently going through a difficult transition period called "Life."
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|