selectedRect
Boudewijn Rempt
boud at valdyas.org
Sun May 22 21:11:27 CEST 2005
On Sunday 22 May 2005 21:07, Casper Boemann wrote:
> Hi
>
> With the introduction of infinite selections the extent() or exactBounds()
> of the selection is no longer enough.
I may have missed this... Aren't selections auto-extending whenever more
pixels get selected anymore?
> If the default value is any other than "not selected" then the selection
> extends to infinity, but extent() doesn't reflect that.
>
> As infinity is a little hard to handle, we can in most cases us the union
> of the paintdevice's extent and the selection's extent. That union is
> provided by selectedRect().
>
> It uses extent but I'm thinking of using exactBounds instead.
It's really important in many cases to have the absolute exact bounding box
that contains all selected pixels -- that's a hard requirement, I'm afraid.
--
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/20050522/1323ad5d/attachment.pgp
More information about the kimageshop
mailing list