diff --git a/main/lib/image.effect/CImage.cpp b/main/lib/image.effect/CImage.cpp index d19a9d63a..753543151 100644 --- a/main/lib/image.effect/CImage.cpp +++ b/main/lib/image.effect/CImage.cpp @@ -159,7 +159,12 @@ END_METHOD BEGIN_METHOD(CIMAGE_invert, GB_INTEGER channel) - Effect::invert(THIS, VARGOPT(channel, Effect::All)); + int channel = VARGOPT(channel, Effect::All); + + if (channel == -1) // Compatibilty with Image.Invert() in 'gb.image'. + IMAGE.Invert((GB_IMG *)THIS, true); + else + Effect::invert(THIS, channel); END_METHOD