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

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFInverseSubtract< T >:

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>
struct CFInverseSubtract< T >

Definition at line 419 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

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

Definition at line 420 of file KoCompositeOpFunctions.h.

420 {
421 using namespace Arithmetic;
422 typedef typename KoColorSpaceMathsTraits<T>::compositetype composite_type;
423 return clamp<T>(composite_type(dst) - inv(src));
424 }

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