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

New Post: Composite ImageMagick equivalent in Magick.NET

$
0
0
Hello,

I try to port this command to Magick.NET :

convert myimage.jpg -set colorspace RGB
    ( -clone 0 -fill #ff0000 -colorize 100% )
    ( -clone 0 -colorspace gray -negate)
    -compose blend -define compose:args=100,0 -composite result.jpg
I try this :

//img is my original image
        MagickImage ret = img.Copy();

        MagickImage filter1 = img.Copy();

        filter1.Colorize(color, new Percentage(100));

        MagickImage filter2 = img.Copy();

        filter2.ColorSpace = ColorSpace.GRAY;
        filter2.Negate();
How to combine all of this to obtain the same result of ImageMagick command?

Thank you a lot ! :)

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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