Krita Source Code Documentation
Loading...
Searching...
No Matches
KoColorSpaceBlendingPolicy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KOCOLORSPACEBLENDINGPOLICY_H
7#define KOCOLORSPACEBLENDINGPOLICY_H
8
9#include <kritapigment_export.h>
10
11#include <KisQStringListFwd.h>
12
16template<typename Traits>
18{
19 using channels_type = typename Traits::channels_type;
21 return value;
22 }
23
25 return value;
26 }
27};
28
35template<typename Traits>
37{
38 using channels_type = typename Traits::channels_type;
39
41 return Traits::math_trait::unitValue - value;
42 }
43
45 return Traits::math_trait::unitValue - value;
46 }
47};
48
52KRITAPIGMENT_EXPORT
54
58KRITAPIGMENT_EXPORT
60
61#endif // KOCOLORSPACEBLENDINGPOLICY_H
float value(const T *src, size_t ch)
KRITAPIGMENT_EXPORT QStringList subtractiveBlendingModesInCmyk()
the list of blendmodes that perform channel-inversion in CMYK color space
KRITAPIGMENT_EXPORT bool useSubtractiveBlendingForCmykColorSpaces()
default blending policy used in additive color spaces
static channels_type fromAdditiveSpace(channels_type value)
static channels_type toAdditiveSpace(channels_type value)
typename Traits::channels_type channels_type
a plending policy used for subtractive color spaces (e.g. CMYK)
typename Traits::channels_type channels_type
static channels_type fromAdditiveSpace(channels_type value)
static channels_type toAdditiveSpace(channels_type value)