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

#include <KoCompositeOpFunctions.h>

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

Definition at line 245 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannels()

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

Definition at line 247 of file KoCompositeOpFunctions.h.

247 {
248 using namespace Arithmetic;
249 float sat = lerp(getSaturation<HSXType>(dstR, dstG, dstB), unitValue<float>(), getSaturation<HSXType>(srcR, srcG, srcB));
250 float light = getLightness<HSXType>(dstR, dstG, dstB);
251 setSaturation<HSXType>(dstR, dstG, dstB, sat);
252 setLightness<HSXType>(dstR, dstG, dstB, light);
253 possiblyFixNegativeValuesNearZeroPoint<channels_type>(dstR, dstG, dstB);
254 }
QPointF lerp(const QPointF &p1, const QPointF &p2, qreal t)

References lerp().


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