|
Krita Source Code Documentation
|
#include <KisDitherUtil.h>
Public Types | |
| enum | PatternValueMode { Auto , Lightness , Alpha } |
| enum | ThresholdMode { Pattern , Noise } |
Public Member Functions | |
| KisDitherUtil () | |
| void | setConfiguration (const KisFilterConfiguration &config, const QString &prefix="") |
| qreal | threshold (const QPoint &pos) |
Private Member Functions | |
| void | setNoiseSeed (const quint64 &noiseSeed) |
| void | setPattern (const QString &md5sum, const QString &patternName, const PatternValueMode valueMode, KisResourcesInterfaceSP resourcesInterface) |
| void | setSpread (const qreal &spread) |
| void | setThresholdMode (const ThresholdMode thresholdMode) |
Private Attributes | |
| quint64 | m_noiseSeed |
| KoPatternSP | m_pattern |
| bool | m_patternUseAlpha |
| PatternValueMode | m_patternValueMode |
| qreal | m_spread |
| ThresholdMode | m_thresholdMode |
Definition at line 20 of file KisDitherUtil.h.
| Enumerator | |
|---|---|
| Auto | |
| Lightness | |
| Alpha | |
Definition at line 27 of file KisDitherUtil.h.
| Enumerator | |
|---|---|
| Pattern | |
| Noise | |
Definition at line 23 of file KisDitherUtil.h.
| KisDitherUtil::KisDitherUtil | ( | ) |
Definition at line 15 of file KisDitherUtil.cpp.
| void KisDitherUtil::setConfiguration | ( | const KisFilterConfiguration & | config, |
| const QString & | prefix = "" ) |
Definition at line 85 of file KisDitherUtil.cpp.
References KisPropertiesConfiguration::getDouble(), KisPropertiesConfiguration::getInt(), KisPropertiesConfiguration::getString(), KisFilterConfiguration::resourcesInterface, setNoiseSeed(), setPattern(), setSpread(), and setThresholdMode().
|
private |
Definition at line 58 of file KisDitherUtil.cpp.
References m_noiseSeed.
|
private |
Definition at line 26 of file KisDitherUtil.cpp.
References Alpha, Auto, m_pattern, m_patternUseAlpha, m_patternValueMode, m_thresholdMode, Pattern, ResourceType::Patterns, and source().
|
private |
|
private |
Definition at line 21 of file KisDitherUtil.cpp.
References m_thresholdMode.
| qreal KisDitherUtil::threshold | ( | const QPoint & | pos | ) |
Definition at line 68 of file KisDitherUtil.cpp.
References m_noiseSeed, m_pattern, m_patternUseAlpha, m_spread, m_thresholdMode, Noise, Pattern, and threshold().
|
private |
Definition at line 49 of file KisDitherUtil.h.
|
private |
Definition at line 48 of file KisDitherUtil.h.
|
private |
Definition at line 50 of file KisDitherUtil.h.
|
private |
Definition at line 47 of file KisDitherUtil.h.
|
private |
Definition at line 51 of file KisDitherUtil.h.
|
private |
Definition at line 46 of file KisDitherUtil.h.