Scaling Code (was: Crop Tool)

Boudewijn Rempt boud at valdyas.org
Mon Mar 28 15:33:46 CEST 2005


On Monday 28 March 2005 15:21, Michael Thaler wrote:
> On Monday 28 March 2005 14:36, Boudewijn Rempt wrote:
> > I see... Undoing a crop gives funny results, too. I'm now working on
> > rotating/scaling/mirroring using the exact extent of a layer, instead of
> > the tiles extent, but I'll look at this when I've done that.
>
> Is someone working on rewriting the scaling code? I seem to remember that
> Casper mentioned that he is writing a floating point version of it. If not,
> the scaling code could be speeded up a lot by copying the image to an array
> first and scaling the array. This should not be too hard to do. In the end,
> the scaling code should use the iterators directly, but I will certainly
> not have enough time to do this before the release,

No, I'm not rewriting the code; just re-enabling so we'll have something
that actually works. Scaling and mirroring works again; rotating after some 
fashio. I'm right now doing a nice dialog box for rotation, nicked from 
Kolourpaint, and then I'll fix the rotation bugs. 

Mirroring and rotating 90/180/270 now actually use the iterators -- they have 
become really easy to use, much easier than they were before. It's a pity 
that the decrement iterator didn't work, because I could have used that for 
mirroring and bounds checking, but stuff works now anyway, and optmizations 
can come later.

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20050328/81b44e42/attachment.pgp


More information about the kimageshop mailing list