Devesprit.ImageProcessor & Devesprit.ImageServer
DecorativeBorderEffect

Description:

This processor adds decorative border to an Image.

The decorative border is specified by setting a border width, a dash style and a Fill.

Method Declaration
Copy Code
public static ImageFactory DecorativeBorderEffect(this ImageFactory imageFactory, DecorativeBorderSettings settings)

DecorativeBorderSettings:

DashStyle

Set the border dash style (System.Drawing.Drawing2D.DashStyle).

Width Set the border width.
Fill The border's fill style (see Fill Class).

Assembly:

Devesprit.ImageProcessor.Plugins.AdvancedEffects.dll

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path")
 .DecorativeBorderEffect(new DecorativeBorderSettings()
  {
   DashStyle = DashStyle.Solid,
   Width = 10,
   Fill =
   {
    Type = FillType.Gradient,
    GradientColor1 = Color.FromArgb(1, 119, 0, 19),
    GradientColor2 = Color.FromArgb(1, 195, 189, 41)
   }
 });

Original

 

 

Result

 

See Also