From kde-devel Fri Nov 07 22:10:19 2003 From: Simon Perreault Date: Fri, 07 Nov 2003 22:10:19 +0000 To: kde-devel Subject: Re: [OT] Any plans to keep up with longhorn? X-MARC-Message: https://marc.info/?l=kde-devel&m=106824313616967 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 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 <<