|
Krita Source Code Documentation
|
#include <KoCompositeOpGenericFunctorBase.h>
Static Public Member Functions | |
| static T | clampDestinationChannelValue (T value) |
| static T | clampSourceChannelValue (T value) |
KoCompositeOpGenericFunctorBase is a set of policies for KoCompositeOpGenericSCFunctor that defines clamping of source and destination channels before passing them to the composite function.
We cannot clamp the data in the composite function itself, because KoCompositeOpGenericSCFunctor also dose quite heavy blending of the channels when alpha values are non-null
IMPORTANT: these policies work with channels_type, not with composite_type! Hence they do nothing for integer color spaces!
Definition at line 28 of file KoCompositeOpGenericFunctorBase.h.
|
inlinestatic |
Definition at line 34 of file KoCompositeOpGenericFunctorBase.h.
References value().
|
inlinestatic |
Definition at line 30 of file KoCompositeOpGenericFunctorBase.h.
References value().