Krita Source Code Documentation
Loading...
Searching...
No Matches
CFColor< HSXType, channels_type > Struct Template Reference

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFColor< HSXType, channels_type >:

Static Public Member Functions

static void composeChannels (float srcR, float srcG, float srcB, float &dstR, float &dstG, float &dstB)
 
- Static Public Member Functions inherited from KoClampedSourceAndDestinationCompositeOpGenericFunctorBase< channels_type >
static channels_type clampDestinationChannelValue (channels_type value)
 
static channels_type clampSourceChannelValue (channels_type value)
 

Detailed Description

template<class HSXType, typename channels_type>
struct CFColor< HSXType, channels_type >

Definition at line 109 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannels()

template<class HSXType , typename channels_type >
static void CFColor< HSXType, channels_type >::composeChannels ( float srcR,
float srcG,
float srcB,
float & dstR,
float & dstG,
float & dstB )
inlinestatic

Definition at line 111 of file KoCompositeOpFunctions.h.

111 {
112 using namespace Arithmetic;
113 float lum = getLightness<HSXType>(dstR, dstG, dstB);
114 dstR = srcR;
115 dstG = srcG;
116 dstB = srcB;
117 setLightness<HSXType>(dstR, dstG, dstB, lum);
118 possiblyFixNegativeValuesNearZeroPoint<channels_type>(dstR, dstG, dstB);
119 }

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