BlobService.GetThumb Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

GetThumb(Blob, Nullable, Nullable, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, String)

Returns a thumbnail image for the specified file. The image returned may be smaller than the size requested, depending on the size and aspect ratio of the original image.

public static FileInfo GetThumb(Blob blob, int? width = default(int? ), int? height = default(int? ), 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

blob
Blob
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

A pointing to a thumbnail image of the specified file, or null if no thumbnail was found.