selectedRect

Casper Boemann cbr at boemann.dk
Sun May 22 21:52:12 CEST 2005


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


More information about the kimageshop mailing list