Devesprit.ImageProcessor & Devesprit.ImageServer
PerspectiveShadowEffect

Description:

This processor adds perspective shadows to an Image.

Method Declaration
Copy Code
public static ImageFactory PerspectiveShadowEffect(this ImageFactory imageFactory,
   PerspectiveShadowSettings settings)

PerspectiveShadowSettings:

Angle Set the direction of the perspective shadow. It is measured counterclockwise from the x-axis.
Color Set the color of the perspective shadow (System.Drawing.Color).
Length Set the length of the perspective shadow.
OffsetY Set the Y-axis offset value for the perspective shadow.
Opacity Set the percentage of transparency in the shadow. Values range from 0 to 100.
Softness Set the sharpness of the shadow.
WidthPercentage Set the width percentage of the perspective shadow based on the element's width.

Assembly:

Devesprit.ImageProcessor.Plugins.AdvancedEffects.dll

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").PerspectiveShadowEffect(new PerspectiveShadowSettings()
 {
   Opacity = 80,
   Length = 50
 });

Original

 

 

Result