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

New Post: Composite Multiply Gray Scaled Images

$
0
0
Another thing I tried today that I quite can't get around.
I tried compositing images with ColorDodge, but can't get the right results.
I'm wondering if it's the alpha channel that messes it up.
convert 1.jpg ( +clone -fill #d29901 -colorize 100% -alpha set -channel A -evaluate set 40% +channel ) -compose ColorDodge -composite test.jpg
vs.
using (var image = new ImageMagick.MagickImage("1.jpg"))
using (var clone = image.Clone())
 {
    clone.Colorize(new MagickColor("#d29901"), new Percentage(100));
    clone.Alpha(AlphaOption.Set);
    clone.Evaluate(Channels.Alpha, EvaluateOperator.Set, Quantum.Max * 0.4);
    image.Composite(clone, CompositeOperator.ColorDodge);
    image.Write(@"D:\test.jpg");
}
Any insights?

Thanks!

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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