Devesprit.ImageProcessor & Devesprit.ImageServer
DropShadowEffect

Description:

This processor adds drop shadows to an Image.

Method Declaration
Copy Code
public static ImageFactory DropShadowEffect(this ImageFactory imageFactory, DropShadowSettings settings)

DropShadowSettings:

Angle Set the direction of the shadow. It is measured counterclockwise from the x-axis.
Value from 0 to 360.
Color Set the color of the shadow (System.Drawing.Color).
Distance Set the distance of the shadow from the object.
Opacity Set the percentage of transparency in the shadow.
Value from 0 to 100.
Softness Set the sharpness of the shadow.

Assembly:

Devesprit.ImageProcessor.Plugins.AdvancedEffects.dll

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path")
 .DropShadowEffect(new DropShadowSettings()
 {
   Angle = 315,
   Distance = 10,
   Opacity = 50,
   Softness = 20
 });

Original

 

 

Result