UrlHelper.ThumbUrl Method

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

Overloads

ThumbUrl(Blob, Nullable, Nullable, Boolean, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, Boolean, Boolean, Boolean) Returns an url to a thumbnail image for the specified blob.
ThumbUrl(Embed, Nullable, Nullable, Boolean, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, Boolean, Boolean, Boolean) Returns an url to a thumbnail image for the specified embed
ThumbUrl(IEntity, Nullable, Nullable, Boolean, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, Boolean, Boolean, Boolean) Returns an url to a thumbnail image for the specified entity.
ThumbUrl(IEnumerable, Nullable, Nullable, Boolean, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, Boolean, Boolean, Boolean) Returns an url to a composite thumbnail image for the specified files.

ThumbUrl(Blob, Nullable, Nullable, Boolean, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, Boolean, Boolean, Boolean)

Returns an url to a thumbnail image for the specified blob.

public static string ThumbUrl(this Blob blob, int? width, int? height, bool retina = true, FitMode fit = FitMode.Fit, ScaleMode scale = ScaleMode.Down, ContentAlignment align, Color? background = default(Color? ), int quality = 90, int opacity = 100, bool ignoreICC = false, bool absolute = false, bool rasterize = false, bool cachebust = true)

Parameters

blob
Blob
width
System.Nullable{System.Int32}
height
System.Nullable{System.Int32}
retina
System.Boolean
fit
FitMode
scale
ScaleMode
align
System.Drawing.ContentAlignment
background
System.Nullable{System.Drawing.Color}
quality
System.Int32
opacity
System.Int32
ignoreICC
System.Boolean
absolute
System.Boolean
rasterize
System.Boolean
cachebust
System.Boolean

Returns

System.String

ThumbUrl(Embed, Nullable, Nullable, Boolean, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, Boolean, Boolean, Boolean)

Returns an url to a thumbnail image for the specified embed

public static string ThumbUrl(this Embed embed, int? width, int? height, bool retina = true, FitMode fit = FitMode.Fit, ScaleMode scale = ScaleMode.Down, ContentAlignment align, Color? background = default(Color? ), int quality = 90, int opacity = 100, bool ignoreICC = false, bool absolute = false, bool rasterize = false, bool cachebust = true)

Parameters

embed
Embed
width
System.Nullable{System.Int32}
height
System.Nullable{System.Int32}
retina
System.Boolean
fit
FitMode
scale
ScaleMode
align
System.Drawing.ContentAlignment
background
System.Nullable{System.Drawing.Color}
quality
System.Int32
opacity
System.Int32
ignoreICC
System.Boolean
absolute
System.Boolean
rasterize
System.Boolean
cachebust
System.Boolean

Returns

System.String

ThumbUrl(IEntity, Nullable, Nullable, Boolean, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, Boolean, Boolean, Boolean)

Returns an url to a thumbnail image for the specified entity.

public static string ThumbUrl(this IEntity entity, int? width, int? height, bool retina = true, FitMode fit = FitMode.Fit, ScaleMode scale = ScaleMode.Down, ContentAlignment align, Color? background = default(Color? ), int quality = 90, int opacity = 100, bool ignoreICC = false, bool absolute = false, bool rasterize = false, bool cachebust = true)

Parameters

entity
IEntity
width
System.Nullable{System.Int32}
height
System.Nullable{System.Int32}
retina
System.Boolean
fit
FitMode
scale
ScaleMode
align
System.Drawing.ContentAlignment
background
System.Nullable{System.Drawing.Color}
quality
System.Int32
opacity
System.Int32
ignoreICC
System.Boolean
absolute
System.Boolean
rasterize
System.Boolean
cachebust
System.Boolean

Returns

System.String

ThumbUrl(IEnumerable, Nullable, Nullable, Boolean, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, Boolean, Boolean, Boolean)

Returns an url to a composite thumbnail image for the specified files.

public static string ThumbUrl(this IEnumerable files, int? width, int? height, bool retina = true, FitMode fit = FitMode.Fit, ScaleMode scale = ScaleMode.Down, ContentAlignment align, Color? background = default(Color? ), int quality = 90, int opacity = 100, bool ignoreICC = false, bool absolute = false, bool rasterize = false, bool cachebust = true)

Parameters

files
System.Collections.Generic.IEnumerable{Weavy.Core.Models.File}
width
System.Nullable{System.Int32}
height
System.Nullable{System.Int32}
retina
System.Boolean
fit
FitMode
scale
ScaleMode
align
System.Drawing.ContentAlignment
background
System.Nullable{System.Drawing.Color}
quality
System.Int32
opacity
System.Int32
ignoreICC
System.Boolean
absolute
System.Boolean
rasterize
System.Boolean
cachebust
System.Boolean

Returns

System.String