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

New Post: Magick Script & Composite

$
0
0
Hi,

Thank you very much for your perfect work.
How can i used Composite in Magick Script ?

Like this :
                MagickImage futmask2 = new MagickImage(System.Drawing.Color.Black, 850, 340);
                
                string func3 = "xcercle=(i-(850)/2)/((850+50)) ; ycercle = sqrt(1-xcercle^2);  ymax=abs(xcercle)>1?0:ycercle  ;ymax";
                futmask2.Fx(func3);
                futmask2.Write("out\\futmask2.png");

                MagickImage test = new MagickImage(filein);
                test.VirtualPixelMethod = VirtualPixelMethod.Transparent;
                test.BackgroundColor = MagickColor.Transparent;
                
                test.Composite(futmask2, 0, 0, CompositeOperator.Darken);
                test.Write("out\\base2.png");

Viewing all articles
Browse latest Browse all 3693

Trending Articles