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

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFHue< 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 CFHue< HSXType, channels_type >

Definition at line 271 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannels()

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

Definition at line 273 of file KoCompositeOpFunctions.h.

273 {
274 float sat = getSaturation<HSXType>(dstR, dstG, dstB);
275 float lum = getLightness<HSXType>(dstR, dstG, dstB);
276
277 dstR = srcR;
278 dstG = srcG;
279 dstB = srcB;
280
281 setSaturation<HSXType>(dstR, dstG, dstB, sat);
282 setLightness<HSXType>(dstR, dstG, dstB, lum);
283 possiblyFixNegativeValuesNearZeroPoint<channels_type>(dstR, dstG, dstB);
284 }

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