Selections
Boudewijn Rempt
boud at valdyas.org
Tue Aug 24 14:22:44 CEST 2004
On Tuesday 24 August 2004 14:19, Boudewijn Rempt wrote:
> On Tuesday 24 August 2004 14:15, Adrian Page wrote:
> > The main advantage of keeping the loops separate is that the code is a
> > lot simpler, which is always a good thing. And since every paint
> > operation (brush, airbrush, line, fill, gradient, etc) will need to
> > respect the selection, the simplest method would be to write to a
> > temporary paint device, apply the selection to that, then composite,
> > rather than putting selection handling into each inner loop. Of course,
> > if it is too slow, the more efficient route would be the one to take.
> > Perhaps we should experiment and see what works best.
>
> Selections are already paint devices -- not that I'm entirely satisfied,
> since they have the colour model of their parent, and that's not necessary,
> just a single channel, so compositing should be really easy.
Scratch that -- I wasn't thinking clearly. Shouldn't do two things at the same
time. I'll try and adapt the gradient code to the current selection thingy to
see what works.
More information about the kimageshop
mailing list