Krita Source Code Documentation
Loading...
Searching...
No Matches
KisProofingConfiguration.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: GPL-3.0-or-later
3 */
4
5#ifndef KISPROOFINGCONFIGURATION_H
6#define KISPROOFINGCONFIGURATION_H
7
8#include "KoColor.h"
10#include "kritaimage_export.h"
11
19class KRITAIMAGE_EXPORT KisProofingConfiguration {
20public:
26 KoColorConversionTransformation::ConversionFlags displayFlags;
31
32 qreal legacyAdaptationState() const {
33 return displayFlags.testFlag(KoColorConversionTransformation::NoAdaptationAbsoluteIntent) ? 0.0 : 1.0;
34 }
35
39
41 Monitor = 0,
43 Custom
44 };
46
48 KoColorConversionTransformation::ConversionFlags determineDisplayFlags(KoColorConversionTransformation::ConversionFlags monitorDisplayFlags);
49
50 bool operator==(const KisProofingConfiguration &other) const;
51 bool operator!=(const KisProofingConfiguration &other) const;
52};
53
55
56#endif // KISPROOFINGCONFIGURATION_H
float value(const T *src, size_t ch)
Q_DECLARE_METATYPE(KisProofingConfiguration::DisplayTransformState)
bool operator==(const KisRegion &lhs, const KisRegion &rhs)
bool operator!=(const KoID &v1, const KoID &v2)
Definition KoID.h:103
The KisProofingConfiguration struct Little struct that stores the proofing configuration for a given ...
DisplayTransformState displayMode
@ Paper
Whether to use Paper settings (absolute colorimetric, 0% adaptation.)
KoColorConversionTransformation::Intent displayIntent
This is the intent for the second transform.
KoColorConversionTransformation::Intent conversionIntent
This is the intent for the first transform.
bool useBlackPointCompensationFirstTransform
Whether to use BCP on the first transform. All other flags are handled by displayFlags;.
void setLegacyAdaptationState(qreal value)
KoColorConversionTransformation::ConversionFlags displayFlags
flags for the second transform.