Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSubtractiveBlendingPolicy< Traits > Struct Template Reference

a plending policy used for subtractive color spaces (e.g. CMYK) More...

#include <KoColorSpaceBlendingPolicy.h>

Public Types

using channels_type = typename Traits::channels_type
 

Static Public Member Functions

static channels_type fromAdditiveSpace (channels_type value)
 
static channels_type toAdditiveSpace (channels_type value)
 

Detailed Description

template<typename Traits>
struct KoSubtractiveBlendingPolicy< Traits >

a plending policy used for subtractive color spaces (e.g. CMYK)

In CMYK we should first invert the colors to make them "additive", and then blend.

Definition at line 36 of file KoColorSpaceBlendingPolicy.h.

Member Typedef Documentation

◆ channels_type

template<typename Traits >
using KoSubtractiveBlendingPolicy< Traits >::channels_type = typename Traits::channels_type

Definition at line 38 of file KoColorSpaceBlendingPolicy.h.

Member Function Documentation

◆ fromAdditiveSpace()

template<typename Traits >
static channels_type KoSubtractiveBlendingPolicy< Traits >::fromAdditiveSpace ( channels_type value)
inlinestatic

Definition at line 44 of file KoColorSpaceBlendingPolicy.h.

44 {
45 return Traits::math_trait::unitValue - value;
46 }
float value(const T *src, size_t ch)

References value().

◆ toAdditiveSpace()

template<typename Traits >
static channels_type KoSubtractiveBlendingPolicy< Traits >::toAdditiveSpace ( channels_type value)
inlinestatic

Definition at line 40 of file KoColorSpaceBlendingPolicy.h.

40 {
41 return Traits::math_trait::unitValue - value;
42 }

References value().


The documentation for this struct was generated from the following file: