Been trying for awhile now trying to get a shadow using the following code:
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");
}
}
But the outcome looks like it originally did to begin with:
And what I am looking to accomplish with the code above is:
Anyone able to help me out? :)
UPDATE still does not seem to be working...