Hi all,
It's my first post because it's my first project.
I must change color for image on one website. I user .NET c#.
I want convert this command :
If I convert this line in C#:
... I don't have the same output. I don't understand why.
Can you help me please ?
Thanks you very much
Stc
It's my first post because it's my first project.
I must change color for image on one website. I user .NET c#.
I want convert this command :
convert 'test.jpg' \( -clone 0 -fill 'red' -colorize 100% \) \( -clone 0 -modulate 100,0,100 -solarize 50% -level 0,50% -evaluate multiply 0.2 \) -compose overlay -composite 'myOutput.jpg'
It's work fine for me cmd line.If I convert this line in C#:
var image = new MagickImage("test.jpg"); var clone0_1 = image.Clone(); var clone0_0 = image.Clone(); clone0_0.Colorize(new MagickColor(Color.Red), new Percentage(100)); clone0_1.Modulate(new Percentage(100), new Percentage(0), new Percentage(100)); clone0_1.Solarize(new Percentage(50)); clone0_1.Level(new Percentage(0), new Percentage(50)); clone0_1.Evaluate(Channels.Default, EvaluateOperator.Multiply, 0.20); image.Composite(clone0_0, CompositeOperator.Overlay); image.Composite(clone0_1, CompositeOperator.Overlay); image.Write("myOutput.jpg");
Can you help me please ?
Thanks you very much
Stc