I have a photo editing VBA Macro that worked fine in older versions of CorelDraw but since upgrading to 2019 it does not work properly. I started debugging and found that all of the Bitmap.ApplyBitmapEffect methods are buggy as demonstrated bellow:
I found the THIS code from CorelDraw's Developer that's not working in 2019 version.
Sub ApplyBitmapEffect() Dim s As Shape For Each s In ActivePage.Shapes If s.Type = cdrBitmapShape Then If s.Bitmap.Mode <> cdrRGBColorImage Then s.Bitmap.ConvertTo cdrRGBColorImage End If '''''Parameters 1 's.Bitmap.ApplyBitmapEffect "Whirlpool", "WhirlpoolEffect WhirpoolSpacing=200,WhirlpoolSmear=30,WhirlpoolTwist=90,WhirlpoolStreak=99,WhirpoolWarp=1,WhirlpoolRandomSeed=0" '''''Parameters 2 s.Bitmap.ApplyBitmapEffect "Whirlpool", "WhirlpoolEffect WhirpoolSpacing=5,WhirlpoolSmear=3,WhirlpoolTwist=0,WhirlpoolStreak=0,WhirpoolWarp=1,WhirlpoolRandomSeed=0" End If Next sEnd Sub
If you run the macro it seems to be working fine but if you change the parameters there is no difference in the result. See Pictures
This seems to be the problem for all the bitmap effects I tried to run as macros/scripts. I am not sure what is cause of these problems in CorelDRAW 2019 or if it is just a bug in the new version. If anyone has any insight to the cause of this problem and if there is a solution/work around... Please HELP!
Yeah I just started to try to work with the programming side of 2019 and the applybitmapeffect method does the same thing, it will apply the effect but you cannot adjust it. Just more buggy work from the 2019 version. Just add it to the whole slew of bad software bugs that are present in 2019. And now Corel wants to jack the price up on the next "upgrade" or should I call it a downgrade if they don't fix these issues I might have to sue!
FYI I found where to get all the parameters, well almost all anyway, for the apply bitmap effect method which works fine in 2018.
Go to Corel Photo-Paint API find the CorelScript Class and the potential effects are listed there you just have to use the naming conventions as shown in the ApplyBitmapEffects method. That last parameter does not appear in the settings and from my tests, it appears to not matter.
Go to this link I posted a working bitmap.applybitmapeffect list that will work just fine in 2018 and the ones I tested in 2019 worked as well.