I'm trying to composite one image on the top of the another.
However, when i use the following code:
Code: Select all
using (MagickImage finalImage = new MagickImage("backgroundimage.png"))
{
using (MagickImage spotImage = new MagickImage("imagetocomposite.png"))
{
spotImage.Composite(finalImage, Gravity.Center);
spotImage.Write("finalimage.png");
}
}
I also tried to do it using command line (for testing):
Code: Select all
composite backgroundimage.png imagetocomposite.png -gravity center finalresult.png
Am i missing something ?
Thanks