Devesprit.ImageProcessor & Devesprit.ImageServer
GlassTableEffect

Description:

This processor creates a glass table effect (a.k.a. Reflection effect) on an Image.

Method Declaration
Copy Code
public static ImageFactory GlassTableEffect(this ImageFactory imageFactory, GlassTableSettings settings)

GlassTableSettings:

ReflectionLocation

Set how the reflection of the image will be positioned. If it is Auto, then the reflection will be positioned just below of the image based on its dimensions; otherwise, the reflection position must be specified by ReflectionLocationX and ReflectionLocationY properties.

(Devesprit.ImageProcessor.Plugins.AdvancedEffects.ReflectionLocation)

ReflectionLocationX Set the x-coordinate of the left side of the reflection image.
ReflectionLocationY Set the y-coordinate of the top side of the reflection image.
ReflectionOpacity Set the percentage of transparency in the reflection (Value from 1 to 100).
ReflectionPercentage Set the percentage of the image height that will be reflected (Value from 1 to 100).

Assembly:

Devesprit.ImageProcessor.Plugins.AdvancedEffects.dll

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path")
.GlassTableEffect(new GlassTableSettings() {ReflectionOpacity = 70, ReflectionPercentage = 30});

Original

 

 

Result