Code: Select all
using (MagickImage image = new MagickImage(@"C:\Users\David\Pictures\YnTf9.png"))
{
MagickImage _shadow = new MagickImage(bitmap);
using (IMagickImage backgroundImg = image.Clone())
{
backgroundImg.Blur(0, 5);
backgroundImg.Crop(400, 300, Gravity.Center);
backgroundImg.RePage();
image.Resize(0, 300);
_shadow.Resize(0, 300);
_shadow.Shadow(10, 10, 0.8, (Percentage)80, MagickColor.FromRgb(0, 0, 0));
backgroundImg.Composite(_shadow, Gravity.Center, CompositeOperator.SrcOver);
backgroundImg.Composite(image, Gravity.Center, CompositeOperator.SrcAtop);
backgroundImg.Write(@"C:\Users\David\Pictures\NEW.png");
}
}
And what I am looking to accomplish with the code above is:
Anyone able to help me out?