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.
Thanks!
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!