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

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFNegation< 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 CFNegation< T >

Definition at line 1049 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

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

Definition at line 1050 of file KoCompositeOpFunctions.h.

1050 {
1051 using namespace Arithmetic;
1052 typedef typename KoColorSpaceMathsTraits<T>::compositetype composite_type;
1053
1054 composite_type unit = unitValue<T>();
1055 composite_type a = unit - src - dst;
1056 composite_type s = std::abs(a);
1057 composite_type d = unit - s;
1058
1059 return T(d);
1060 }

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