Class ThumbnailFormatUtil
Inheritance
System.Object
ThumbnailFormatUtil
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.EPiServer
Assembly: ImageVault.EPiServer.dll
Syntax
public class ThumbnailFormatUtil
Constructors
ThumbnailFormatUtil(Int32, Int32, ResizeMode)
Initializes a new instance of the ThumbnailFormatUtil class.
Declaration
public ThumbnailFormatUtil(int defaultWidth, int defaultHeight, ResizeMode defaultResizeMode)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | defaultWidth | |
System.Int32 | defaultHeight | |
ResizeMode | defaultResizeMode |
Properties
DefaultChannelHeight
Declaration
public int DefaultChannelHeight { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
DefaultChannelWidth
Declaration
public int DefaultChannelWidth { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
DefaultFormat
Gets the Default Format of the Thumbnail
Declaration
public ThumbnailFormat DefaultFormat { get; }
Property Value
Type | Description |
---|---|
ThumbnailFormat |
DefaultHeight
Gets the default height of the Thumbnail
Declaration
public int DefaultHeight { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
DefaultResizeMode
Gets the Default Resize Mode of the thumbnail
Declaration
public ResizeMode DefaultResizeMode { get; }
Property Value
Type | Description |
---|---|
ResizeMode |
DefaultWidth
Gets the default width of the Thumbnail
Declaration
public int DefaultWidth { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
GetThumbnailFormat(MediaReference, PropertyMediaSettings, DisplayChannelSetting)
Gets the thumbnail format suitable for the supplied value and settings
Declaration
public ThumbnailFormat GetThumbnailFormat(MediaReference value, PropertyMediaSettings currentSettings, DisplayChannelSetting displayChannelSetting = null)
Parameters
Type | Name | Description |
---|---|---|
MediaReference | value | The MediaReference containing the effects for the item or null if no effects should be considered |
PropertyMediaSettings | currentSettings | The PropertyMediaSettings to use |
DisplayChannelSetting | displayChannelSetting |
Returns
Type | Description |
---|---|
ThumbnailFormat |