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

#include <KoCompositeOpFunctions.h>

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

Definition at line 683 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

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

Definition at line 684 of file KoCompositeOpFunctions.h.

684 {
685 using namespace Arithmetic;
686 typedef typename KoColorSpaceMathsTraits<T>::compositetype composite_type;
687
688 const composite_type sum = composite_type(src) + dst;
689
690 return sum > unitValue<T>() ? unitValue<T>() : zeroValue<T>();
691 }

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