[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [OT] Any plans to keep up with longhorn?
From:       Simon Perreault <perrea02 () gel ! ulaval ! ca>
Date:       2003-11-07 22:10:19
[Download RAW message or body]

On November 7, 2003 16:09, Joachim Eibl wrote:
> > > Before doing that, you might want to try to optimize the little code
> > > snippet below.
> >
> > Why that when there's already QImage::smoothScale()?
>
> Not so on my machine.
> I've attached the result of a little testprogram.
>
> The small pic (16x16) on the left is the original.
> Then normal scale 100x100,
> then smooth scale 100x100,
> and finally my smoothResize 100x100.
>
> At first the result of QImage::smoothScale() doesn't look smoother at all.
> You have to look quite closely. (Is this a bug?)

smoothScale interpolates the width of 1 pixel. smoothResize interpolates the 
width of ratio pixels. Normal scale doesn't interpolate.

Don't forget: you can't create information. What you're doing with smooth 
scaling is not much better than normal scaling. Now, you could invent 
something kinda like a high-pass filter, like the super eagle (is that how 
it's called) used in some console emulator.

But scaling a pixmap is not like scaling a vector graphic. This is why the two 
aren't named the same.

-- 
Simon Perreault <perrea02@gel.ulaval.ca>
http://nomis80.org
"If voting could really change things, it would be illegal."
    --Excerpt from a Diebold Election Systems internal memo.

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic