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

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFLinearBurn< 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 CFLinearBurn< T, ClampPolicy >

Definition at line 366 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

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

Definition at line 367 of file KoCompositeOpFunctions.h.

367 {
368 using namespace Arithmetic;
369 using clamp_policy = ClampPolicy<T>;
370 using composite_type = typename KoColorSpaceMathsTraits<T>::compositetype;
371
372 return clamp_policy::clampResult(composite_type(src) + dst - unitValue<T>());
373 }

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