Changeset View
Changeset View
Standalone View
Standalone View
commands/imagelib/effects/kpEffectReduceColorsCommand.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 53 | case 1: if (dither) { | |||
---|---|---|---|---|---|
56 | return i18n ("Reduce to Monochrome"); | 56 | return i18n ("Reduce to Monochrome"); | ||
57 | 57 | | |||
58 | case 8: | 58 | case 8: | ||
59 | if (dither) { | 59 | if (dither) { | ||
60 | return i18n ("Reduce to 256 Color (Dithered)"); | 60 | return i18n ("Reduce to 256 Color (Dithered)"); | ||
61 | } | 61 | } | ||
62 | return i18n ("Reduce to 256 Color"); | 62 | return i18n ("Reduce to 256 Color"); | ||
63 | 63 | | |||
64 | default: return QString(); | 64 | default: return {}; | ||
65 | } | 65 | } | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | //--------------------------------------------------------------------- | 68 | //--------------------------------------------------------------------- | ||
69 | 69 | | |||
70 | // | 70 | // | ||
71 | // kpEffectReduceColorsCommand implements kpEffectCommandBase interface | 71 | // kpEffectReduceColorsCommand implements kpEffectCommandBase interface | ||
72 | // | 72 | // | ||
73 | 73 | | |||
74 | // protected virtual [base kpEffectCommandBase] | 74 | // protected virtual [base kpEffectCommandBase] | ||
75 | kpImage kpEffectReduceColorsCommand::applyEffect (const kpImage &image) | 75 | kpImage kpEffectReduceColorsCommand::applyEffect (const kpImage &image) | ||
76 | { | 76 | { | ||
77 | return kpEffectReduceColors::applyEffect (image, m_depth, m_dither); | 77 | return kpEffectReduceColors::applyEffect (image, m_depth, m_dither); | ||
78 | } | 78 | } | ||
79 | 79 | | |||
80 | //--------------------------------------------------------------------- | 80 | //--------------------------------------------------------------------- |