Krita Source Code Documentation
Loading...
Searching...
No Matches
CFExclusion< T > Struct Template Reference

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFExclusion< T >:

Static Public Member Functions

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

Detailed Description

template<class T>
struct CFExclusion< T >

Definition at line 428 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

template<class T >
static T CFExclusion< T >::composeChannel ( T src,
T dst )
inlinestatic

Definition at line 429 of file KoCompositeOpFunctions.h.

429 {
430 using namespace Arithmetic;
431 typedef typename KoColorSpaceMathsTraits<T>::compositetype composite_type;
432
433 composite_type x = mul(src, dst);
434 return clamp<T>(composite_type(dst) + src - (x + x));
435 }
T mul(T a, T b)

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