s1.ApplyEffectInvert Doesn't Work On Bitmaps in CorelDraw 2023

When making a macro, the code "s1.ApplyEffectInvert" doesn't work on bitmaps. It works on vector objects and it works in CorelDraw 2020, but in CorelDraw 2023 it does not work on bitmaps. Any help on why this doesn't work or how to get it to work?