Devesprit.ImageProcessor & Devesprit.ImageServer
Scale

Description:

This processor enlarges or reduces the size of an Image based on percentage values.

Method Declaration
Copy Code
public static ImageFactory Scale(this ImageFactory imageFactory, ScaleSettings settings)

ScaleSettings:

HeightPercentage Set the new image height based on a percentage of the original height. value from 1 to 100.
WidthPercentage Set the new image width based on a percentage of the original width. value from 1 to 100.
InterpolationMode Set the interpolation mode to use.

(System.Drawing.Drawing2D.InterpolationMode)

Assembly:

Devesprit.ImageProcessor.Plugins.AdvancedEffects.dll

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").Scale(new ScaleSettings()
 {
   HeightPercentage = 70,
   WidthPercentage = 70
 });

Original

 

 

Result