Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDitherUtil.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE project
3 *
4 * SPDX-FileCopyrightText: 2019 Carl Olsson <carl.olsson@gmail.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KIS_DITHER_UTIL_H
10#define KIS_DITHER_UTIL_H
11
12#include <kritaui_export.h>
13
14#include <kis_types.h>
15
16#include <KoPattern.h>
17
19
20class KRITAUI_EXPORT KisDitherUtil
21{
22public:
25 Noise
26 };
32
34 void setConfiguration(const KisFilterConfiguration &config, const QString &prefix = "");
35 qreal threshold(const QPoint &pos);
36
37private:
38
39 void setThresholdMode(const ThresholdMode thresholdMode);
40 void setPattern(const QString &md5sum, const QString &patternName, const PatternValueMode valueMode, KisResourcesInterfaceSP resourcesInterface);
41 void setNoiseSeed(const quint64 &noiseSeed);
42 void setSpread(const qreal &spread);
43
44
45private:
49 quint64 m_noiseSeed;
51 qreal m_spread;
52};
53
54#endif
quint64 m_noiseSeed
PatternValueMode m_patternValueMode
ThresholdMode m_thresholdMode
KoPatternSP m_pattern