Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: How do I translate this to Magick.net?

$
0
0
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:
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

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>