Yet another bug. This time filters vs selections

Boudewijn Rempt boud at valdyas.org
Thu Sep 10 09:36:08 CEST 2009


On Wednesday 09 September 2009, Dmitry Kazakov wrote:
> On Wed, Sep 9, 2009 at 11:48 PM, Boudewijn Rempt <> wrote:
> > On Wednesday 09 September 2009, Dmitry Kazakov wrote:
> > > That is not good API solution. In the worst case we will have to
> >
> > introduce
> >
> > > unified way of iterating through pixels taking selections into account.
> >
> > We have that already. Pass the selection to the iterator factory function
> > in
> > KisPaintDevice and you will iterate through the selection together with
> > the pixels in the paint device. This really is not a problem, and I am
> > sure that
> > we are not going to change it.
> 
> Again. That is a binary transparency iteration that is not good itself. We
> need a full-featured transparency with 256 levels of transparency.
> 

We have that. Apart from isSelected(), the iterator also provides 
selectedness() which returns those levels.

-- 
Boudewijn Rempt | http://www.valdyas.org


More information about the kimageshop mailing list