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

#include <KoCompositeOpFunctions.h>

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

Definition at line 233 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannels()

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

Definition at line 235 of file KoCompositeOpFunctions.h.

235 {
236 float sat = getSaturation<HSXType>(srcR, srcG, srcB);
237 float light = getLightness<HSXType>(dstR, dstG, dstB);
238 setSaturation<HSXType>(dstR, dstG, dstB, sat);
239 setLightness<HSXType>(dstR, dstG, dstB, light);
240 possiblyFixNegativeValuesNearZeroPoint<channels_type>(dstR, dstG, dstB);
241 }

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