Painting on selections and selection masks

Silvio Heinrich plassy at
Fri Oct 28 17:39:09 UTC 2011

On 10/28/2011 06:38 PM, Dmitry Kazakov wrote:
> Cyrille, is it possible to have a composite op which has different
> source and destination colorspaces?
> --
> Dmitry Kazakov
i'm not Cyrille :D but I was looking in that too.
you cannot have composite ops with different src/dst colorspaces.
the pigments library architecture is not designed this way.
if you want to change it you have to change all the composite ops.
since this are templates and the information for what colorspace should 
be used comes through the template parameter the lasses should look like 

template<class SrcCSTraits, class DstCSTraits>
class CompositeOp { ... };

but with such a design you must be careful to not instantiate the 
composite ops with two different colorspaces (like RGB and CMY).
the two colorspaces would only be allowed to differ in bit depth 
(channel size) if the colorspace has or has not an alpha channel (you 
can test this without a big performance penalty, imho).

i think changing the composite ops this way shouldn't be too difficult 
but i don't know how much work it would be to merge it with the rest of 
the krita code.

More information about the kimageshop mailing list