Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
1.4 KB
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2021 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KRITA_KISCOLORSMUDGESTRATEGYMASKLEGACY_H
#define KRITA_KISCOLORSMUDGESTRATEGYMASKLEGACY_H

#include "KisColorSmudgeStrategyMask.h"


class KisColorSmudgeStrategyMaskLegacy : public KisColorSmudgeStrategyMask
{
public:
    KisColorSmudgeStrategyMaskLegacy(KisPainter *painter,
                                     KisImageSP image,
                                     bool smearAlpha,
                                     bool useDullingMode,
                                     bool useOverlayMode);

    void sampleDullingColor(const QRect &srcRect, qreal sampleRadiusValue, KisColorSmudgeSourceSP sourceDevice,
                            KisFixedPaintDeviceSP tempFixedDevice, KisFixedPaintDeviceSP maskDab,
                            KoColor *resultColor) override;
    QString smearCompositeOp(bool smearAlpha) const override;
    QString finalCompositeOp(bool smearAlpha) const override;
    qreal finalPainterOpacity(qreal opacity, qreal smudgeRateValue) override;
    qreal colorRateOpacity(qreal opacity, qreal smudgeRateValue, qreal colorRateValue, qreal maxPossibleSmudgeRateValue) override;
    qreal dullingRateOpacity(qreal opacity, qreal smudgeRateValue) override;
    qreal smearRateOpacity(qreal opacity, qreal smudgeRateValue) override;
};


#endif //KRITA_KISCOLORSMUDGESTRATEGYMASKLEGACY_H