Image loading library

Cyrille Berger cberger at cberger.net
Thu Apr 26 07:49:14 BST 2007


> By progressive loading iI mean loading (and displaying) an image before all
> the image data is available, so this mean it's the job of the image loader
> to notify others when parts of the image get available. Therefore I don't
> think your solution will work (or did I misunderstood something?)

I was thinking to something like:

QImageReader imr;

for(y = 0..height)
{
imr.setClip( QRect(x, y, width, y+1));
imr.read(img);
emit dataArrived();
}

Which would be very similar to what you would if you use directly 
libpng/libjpeg/etc. The only problem is if QImageReader::read needs to reopen 
the file for each line.

-- 
Cyrille Berger




More information about the kde-core-devel mailing list