Krita Source Code Documentation
Loading...
Searching...
No Matches
CFHardMix< T, ClampPolicy > Struct Template Reference

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFHardMix< T, ClampPolicy >:

Static Public Member Functions

static T composeChannel (T src, T dst)
 
- Static Public Member Functions inherited from KoClampedSourceCompositeOpGenericFunctorBase< T >
static T clampDestinationChannelValue (T value)
 
static T clampSourceChannelValue (T value)
 

Detailed Description

template<class T, template< typename > typename ClampPolicy>
struct CFHardMix< T, ClampPolicy >

Definition at line 667 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

template<class T , template< typename > typename ClampPolicy>
static T CFHardMix< T, ClampPolicy >::composeChannel ( T src,
T dst )
inlinestatic

We do not clamp dst here, because it is supposed to be modified by cfColorDodge if it is too bright. The result will be clamped in the subordinate function.

Definition at line 668 of file KoCompositeOpFunctions.h.

668 {
669 using namespace Arithmetic;
670
676 return dst > halfValue<T>() ?
679 }
static T composeChannel(T src, T dst)
static T composeChannel(T src, T dst)

References CFColorBurn< T >::composeChannel(), and CFColorDodge< T, ClampPolicy >::composeChannel().


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