FileHelper.Resize Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Resize(FileInfo, Nullable, Nullable, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, String)

Returns a resized version of the specified image.

public static FileInfo Resize(FileInfo image, int? width, int? height, FitMode fit = FitMode.Fit, ScaleMode scale = ScaleMode.Down, ContentAlignment align, Color? background = default(Color? ), int quality = 90, int opacity = 100, bool ignoreICC = false, string extension = null)

Parameters

image
System.IO.FileInfo
width
System.Nullable{System.Int32}
height
System.Nullable{System.Int32}
fit
FitMode
scale
ScaleMode
align
System.Drawing.ContentAlignment
background
System.Nullable{System.Drawing.Color}
quality
System.Int32
opacity
System.Int32
ignoreICC
System.Boolean
extension
System.String

Returns

System.IO.FileInfo

Returns a object pointing to the resized image, or null if the image could not be resized.