I am sorry, I don't think you understood me correctly and I am not sure if the bug you found relates to my issue. Let me explain again
What i need to do is get the difference between two images. The following command does exactly what I need:
I tried the code You proposed, but in OUTPUT.png I get exactly the same content of IMG1.png
What i need to do is get the difference between two images. The following command does exactly what I need:
convert IMG1.png IMG2.png -compose ChangeMask -composite OUTPUT.png
Now I am trying to accomplish that in Magick.NET, but I fail.I tried the code You proposed, but in OUTPUT.png I get exactly the same content of IMG1.png
IMG=New MagickImage("IMG1.png")
Mask=New MagickImage("IMG2.png")
IMG.Composite(Mask, Gravity.Center, CompositeOperator.ChangeMask)
IMG.Write("OUTPUT.png")
So, I am not sure if I am doing correctly the translation from the Imagemagick command to Magick.NET