Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorSmudgeStrategyMaskLegacy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KRITA_KISCOLORSMUDGESTRATEGYMASKLEGACY_H
8#define KRITA_KISCOLORSMUDGESTRATEGYMASKLEGACY_H
9
11
12
14{
15public:
17 KisImageSP image,
18 bool smearAlpha,
19 bool useDullingMode,
20 bool useOverlayMode);
21
22 void sampleDullingColor(const QRect &srcRect, qreal sampleRadiusValue, KisColorSmudgeSourceSP sourceDevice,
23 KisFixedPaintDeviceSP tempFixedDevice, KisFixedPaintDeviceSP maskDab,
24 KoColor *resultColor) override;
25 QString smearCompositeOp(bool smearAlpha) const override;
26 QString finalCompositeOp(bool smearAlpha) const override;
27 qreal finalPainterOpacity(qreal opacity, qreal smudgeRateValue) override;
28 qreal colorRateOpacity(qreal opacity, qreal smudgeRateValue, qreal colorRateValue, qreal maxPossibleSmudgeRateValue) override;
29 qreal dullingRateOpacity(qreal opacity, qreal smudgeRateValue) override;
30 qreal smearRateOpacity(qreal opacity, qreal smudgeRateValue) override;
31};
32
33
34#endif //KRITA_KISCOLORSMUDGESTRATEGYMASKLEGACY_H
KisColorSmudgeStrategyMaskLegacy(KisPainter *painter, KisImageSP image, bool smearAlpha, bool useDullingMode, bool useOverlayMode)
qreal colorRateOpacity(qreal opacity, qreal smudgeRateValue, qreal colorRateValue, qreal maxPossibleSmudgeRateValue) override
void sampleDullingColor(const QRect &srcRect, qreal sampleRadiusValue, KisColorSmudgeSourceSP sourceDevice, KisFixedPaintDeviceSP tempFixedDevice, KisFixedPaintDeviceSP maskDab, KoColor *resultColor) override
qreal dullingRateOpacity(qreal opacity, qreal smudgeRateValue) override
qreal smearRateOpacity(qreal opacity, qreal smudgeRateValue) override
QString finalCompositeOp(bool smearAlpha) const override
qreal finalPainterOpacity(qreal opacity, qreal smudgeRateValue) override
QString smearCompositeOp(bool smearAlpha) const override