Devesprit.ImageProcessor & Devesprit.ImageServer
Skew

Description:

This processor transforms an Image by slanting it along the horizontal or vertical axis. When skewed, an element pivots on its origin point.
Skew processor is defined by specifying a skewing type (Parallelogram or Trapezoid), an orientation (Horizontal or Vertical) and a positive or negative angle.

Method Declaration
Copy Code
public static ImageFactory Skew(this ImageFactory imageFactory, SkewSettings settings)

SkewSettings:

Angle Set the skewing angle.
ConstrainProportions Set whether maintaing the same proportions as the original.
Orientation Set the skewing orientation.

(Devesprit.ImageProcessor.Plugins.AdvancedEffects.SkewOrientation)

Type Set the skewing type.

(Devesprit.ImageProcessor.Plugins.AdvancedEffects.SkewType)

Assembly:

Devesprit.ImageProcessor.Plugins.AdvancedEffects.dll

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").Skew(new SkewSettings() {Angle = -10, Type = SkewType.Trapezoid});

Original

 

 

Result