koffice/krita/core

Boudewijn Rempt boud at valdyas.org
Mon Mar 28 15:41:36 CEST 2005


On Monday 28 March 2005 15:39, Casper Boemann wrote:
> On Monday 28 March 2005 15:14, Boudewijn Rempt wrote:
> > CVS commit by rempt:
> >
> > * Added a setExactBounds method that returns the smallest dimenstions
> > of the image that contains all the non-null pixels (ie, those filled
> > with nothing but zeroes).
> > * This fixes mirroring :-).
>
> Great I needed the exactBounds function as well :-)

It was a beast to get working correctly, I can tell you :-).

>
> regarding mirroring: was that function really needed? I would have thought
> taking the layeroffset and image dimensions and calculating a new
> layeroffset would be enough.

I explicitly didn't want the image dimensions to come into play; if a layer is 
bigger than an image, I want it mirrored completely, not just the bits inside 
the image dimensions.

-- 
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/9aac0191/attachment.pgp


More information about the kimageshop mailing list