This processor adds perspective reflection to an Image.
Method Declaration |
Copy Code |
---|---|
public static ImageFactory PerspectiveReflectionEffect(this ImageFactory imageFactory, PerspectiveReflectionSettings settings) |
Angle | Set the direction of the perspective reflection. It is measured counterclockwise from the x-axis. |
Length | Set the length of the perspective reflection. |
OffsetY | Set the Y-axis offset value for the perspective reflection. |
Opacity | Set the percentage of transparency in the reflection. Values range from 0 to 100. |
WidthPercentage | Set the width percentage of the perspective reflection based on the element's width. |
Devesprit.ImageProcessor.Plugins.AdvancedEffects.dll
Example |
Copy Code |
---|---|
new ImageFactory().Load(@"My-Image-Path").PerspectiveReflectionEffect(new PerspectiveReflectionSettings() { Opacity = 80, Length = 100 }); |
Original
Result