Grayscale Selections

Cyrille Berger Skott cberger at cberger.net
Sat Jul 2 17:28:45 CEST 2011


On Tuesday 28 June 2011, Cyrille Berger Skott wrote:
> Alternatively, you need to refactor pigment, you have two paths:
> * huge refactoring: the alpha channel is seperated from the color space,
> and RGB and RGBA becomes the same class (or Gray and GrayA), in the paint
> device, the channel is added seperately, and when bitblt, we pass a
> seperate pointer to the alpha channel, that can be null or not (ie like
> the mask)
> * smaller solution: make it possible to create composite op that work
> across color spaces

There is a third solution
* detect in KoColorSpace::bitBlt that the destination color space is the same 
as the source color space without alpha, and add an alpha channel to the data 
and then discard it, but that is not going to be performant.

-- 
Cyrille Berger Skott


More information about the kimageshop mailing list