magick.net alpha masking
Posted: 2017-09-12T09:48:16-07:00
I want to apply an alpha mask onto a picture, just as in this post: viewtopic.php?t=30488. But I can't figure how can I translate the command from Imagemagick to magick.net:
I can create the image, clone it and apply alpha:
But don't know how to code "-evaluate multiply 0".
Thank you
Code: Select all
convert 3-sample.png -alpha on -background none ^
( +clone -channel a -evaluate multiply 0 +channel -fill white -draw "ellipse 153,128 57,57 0,360" ) ^
-compose DstIn -composite circle_in.png
Code: Select all
using (MagickImage image = new MagickImage(filePath))
{
image.Alpha(AlphaOption.On);
IMagickImage clone = image.Clone();
}
Thank you