ContentService.GetThumb Method

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

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

Gets a thumbnail image for the specified content object.

public static FileInfo GetThumb(Content content, 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

content
Content
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, or null if no thumbnail was found.