Filters and selections

Casper Boemann cbr at boemann.dk
Fri Jan 7 12:26:05 CET 2005


On Friday 07 January 2005 10:11, Boudewijn Rempt wrote:
> > Another thing comes to mind: for non-rectangular selections, applying
> > filters might not work because you often need the neighbour pixels. So it
> > would be fine if there would be a method to get the smallest rectangular
> > region covered by a selection, apply the filter to that and then replace
> > the selected area. Or is there a better way?
>
> I think that would work. You'd need the smallest rectangle containig the
> selection for more things, for instance in order to determine the spread of
> a gradient. However, even if there's a method to get the selected rect,
> it's not good. I cannot seem to come up with an algorithm to determine
> accurately the smallest rect around a selection.
Then wait for autolayers then. Since the selection is a paintdevice in its own 
right,  getting a bounding rect should be easy. (note it isn't implemented 
yet, but it can be done in about 15 minutes)

however it's not the smallest area, but to witihin a tile size.

-- 
best regards
Casper Boemann


More information about the kimageshop mailing list