Devesprit.ImageProcessor & Devesprit.ImageServer
MuseumMatteFrameEffect

Description:

This processor adds shadowed matte frame to an Image. Devesprit.ImageProcessor provides a flexible Museum Matte Frame effect allowing you to control the outside and inside border thikness and fill as well as shadow colors.

Method Declaration
Copy Code
public static ImageFactory MuseumMatteFrameEffect(this ImageFactory imageFactory, MuseumMatteFrameSettings settings)

MuseumMatteFrameSettings:

InnerBorderFill The inside border's fill style (see Fill Class).
InnerBorderShadowColor Set the shadow color for the inside border (System.Drawing.Color).
InnerBorderWidth Set the inside border width.
OuterBorderFill The outside border's fill style (see Fill Class).
OuterBorderShadowColor Set the shadow color for the outside border (System.Drawing.Color).
OuterBorderWidth Set the outside border width.

Assembly:

Devesprit.ImageProcessor.Plugins.AdvancedEffects.dll

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").MuseumMatteFrameEffect(new MuseumMatteFrameSettings()
 {
   InnerBorderShadowColor = Color.Silver,
   OuterBorderShadowColor = Color.Black
 });

Original

 

 

Result

See Also