preview and birdseye

Casper Boemann cbr at boemann.dk
Wed Jan 4 18:37:41 CET 2006


Hi

As Cyrille is about to fix preview I promised him to write a mail about my 
design input.

It nothing big really and follows in pseudocode

if(scale down)
{
    for each pixel in destination
    {
        srcpixel = nearest match in source
	apply filter to that pixel
	write to destination pixel
     }
    convert destination to monitor profile (QImage)
}
else
{
    for each pixel in souce
        apply filter to that pixel
	write to temporary

    convert temporary to monitor profile (QImage)
    scale temporry to destination size
}


Even further speedup can be accomplished by using notify rects for the 
birdseyeview

This approach can also be used for thumbnails for layerbox

-- 
best regards / venlig hilsen
Casper Boemann


More information about the kimageshop mailing list