Changeset View
Changeset View
Standalone View
Standalone View
commands/imagelib/effects/kpEffectInvertCommand.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | 46 | | |||
47 | kpEffectInvertCommand::kpEffectInvertCommand (bool actOnSelection, | 47 | kpEffectInvertCommand::kpEffectInvertCommand (bool actOnSelection, | ||
48 | kpCommandEnvironment *environ) | 48 | kpCommandEnvironment *environ) | ||
49 | : kpEffectCommandBase (i18n ("Invert Colors"), actOnSelection, environ), | 49 | : kpEffectCommandBase (i18n ("Invert Colors"), actOnSelection, environ), | ||
50 | m_channels (kpEffectInvert::RGB) | 50 | m_channels (kpEffectInvert::RGB) | ||
51 | { | 51 | { | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | kpEffectInvertCommand::~kpEffectInvertCommand () | 54 | kpEffectInvertCommand::~kpEffectInvertCommand () = default; | ||
55 | { | | |||
56 | } | | |||
57 | 55 | | |||
58 | 56 | | |||
59 | // | 57 | // | ||
60 | // kpEffectInvertCommand implements kpEffectCommandBase interface | 58 | // kpEffectInvertCommand implements kpEffectCommandBase interface | ||
61 | // | 59 | // | ||
62 | 60 | | |||
63 | // protected virtual [base kpEffectCommandBase] | 61 | // protected virtual [base kpEffectCommandBase] | ||
64 | kpImage kpEffectInvertCommand::applyEffect (const kpImage &image) | 62 | kpImage kpEffectInvertCommand::applyEffect (const kpImage &image) | ||
65 | { | 63 | { | ||
66 | return kpEffectInvert::applyEffect (image, m_channels); | 64 | return kpEffectInvert::applyEffect (image, m_channels); | ||
67 | } | 65 | } | ||
68 | 66 | | |||
69 | 67 | |