Two more functions for the colorstrategy?

Casper Boemann cbr at
Wed Aug 10 13:51:38 CEST 2005

On Tuesday 09 August 2005 09:26, Boudewijn Rempt wrote:
> KisPaintDevice has two function, clearSelection and applySelection that do
> some maths with the alpha value. Both functions use KisPixel with its
> hard-coded 8-bit alpha value, although clearSelection puts the value in a
> short
> clearSelection does: MAX_SELECTED - selection alpha * device alpha
> applySelection does: selection alpa * device alpha / MAX_SELECTED
> I think we should push these computations back into the color strategy --
> but I'm not sure of a good name for them.
how about:

anyway I need them in the transform tool as well
best regards / venlig hilsen
Casper Boemann

More information about the kimageshop mailing list