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.1 KB
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2021 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KRITA_KISCOLORSMUDGESTRATEGYSTAMP_H
#define KRITA_KISCOLORSMUDGESTRATEGYSTAMP_H

#include "KisColorSmudgeStrategyWithOverlay.h"

struct KisColorSmudgeStrategyStamp : public KisColorSmudgeStrategyWithOverlay
{
    KisColorSmudgeStrategyStamp(KisPainter *painter,
                                KisImageSP image,
                                bool smearAlpha,
                                bool useDullingMode,
                                bool useOverlayMode);

    DabColoringStrategy &coloringStrategy() override;

    void updateMask(KisDabCache *dabCache,
                    const KisPaintInformation& info,
                    const KisDabShape &shape,
                    const QPointF &cursorPoint,
                    QRect *dstDabRect,
                    qreal lightnessStrength) override;

private:
    KisFixedPaintDeviceSP m_origDab;
    DabColoringStrategyStamp m_coloringStrategy;
};


#endif //KRITA_KISCOLORSMUDGESTRATEGYSTAMP_H