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

List:       kde-kimageshop
Subject:    Re: selectedRect
From:       Casper Boemann <cbr () boemann ! dk>
Date:       2005-05-22 19:52:12
Message-ID: 200505222152.12181.cbr () boemann ! dk
[Download RAW message or body]

On Sunday 22 May 2005 21:35, Boudewijn Rempt wrote:
> > I for sure can not think of a case. Some special cases probably exist
> > where you want to affect the infinity but those are special cases like
> > invert()
>
> Well, for instance, I want to copy a selection to a new layer. In that
> case, I don't want to do more work than necessary, so I want the copy
> iterator to be no bigger than the bounding box.
yes handled by selectedRect()

>
> Same with rotation: a selection should be rotating around the centre of the
> exact bounding box of the selection.
yes handled by selectedRect()

> With histograms, ditto

> -- the exact bounding box of the selection (which 
> should be contained within the paint device, I don't see any reason for a
> selection to be bigger than the paint device, but I may well miss the point
> here) is necessary to do as little work as possible.
hmm, perhabs selectedRect should be:
   paintdev extent when defPixel !=0
   selection extent when defPixel == 0

-- 
best regards / venlig hilsen
Casper Boemann
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

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