Devesprit.ImageProcessor & Devesprit.ImageServer
Stretch

Description:

This processor stretches an Image to fit a given size.

Method Declaration
Copy Code
public static ImageFactory Stretch(this ImageFactory imageFactory, StretchSettings settings)

StretchSettings:

stretch.Height Set the new image height.
stretch.Width Set the new image width.

Assembly:

Devesprit.ImageProcessor.Plugins.AdvancedEffects.dll

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").Stretch(new StretchSettings() {Width = 400, Height = 400});

Original

 

 

Result