Class DbGenericConversionFormat
Defines a DbGenericConversion instance.
Implements
Inherited Members
Namespace: ImageVault.Core.Common.DbEntities
Assembly: ImageVault.Core.dll
Syntax
public class DbGenericConversionFormat : DbMediaConversionFormatBase
Remarks
2011-12-01 dan: Created
Constructors
DbGenericConversionFormat()
Initializes a new instance of the DbGenericConversionFormat class.
Declaration
public DbGenericConversionFormat()
DbGenericConversionFormat(DbGenericConversionFormat)
Initializes a new instance of the DbGenericConversionFormat class.
Declaration
public DbGenericConversionFormat(DbGenericConversionFormat template)
Parameters
Type | Name | Description |
---|---|---|
DbGenericConversionFormat | template |
Properties
AspectRatio
Get/Sets the AspectRatio of the MediaConversion
Declaration
public double AspectRatio { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Defines the aspect ratio of the image. If set the original image will automatically cropped to a size that matches the given aspect ratio (unless the original image already matches the given aspect ratio). Default value is zero. Zero disables the crop function, negative values are illegal. |
Height
Get/Sets the Height of the MediaConversion
Declaration
public int? Height { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | Defines the maximum height of the image |
KeepAspectRatio
Get/Sets the KeepAspectRatio of the MediaConversion
Declaration
public bool KeepAspectRatio { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Will keep the original aspect ratio of the image if set to true. If false the image will be the aspect ratio of the target size. Default value is true |
Remarks
If the AspectRatio is set to anything else than zero, this value has no function since the aspect ratio is already set.
Width
Get/Sets the Width of the MediaConversion
Declaration
public int? Width { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | Defines the maximum width of the image |
Methods
ToDbGenericConversion(WebMediaFormat)
Converts the WebMediaFormat to a DbGenericConversionFormat
Declaration
public static DbGenericConversionFormat ToDbGenericConversion(WebMediaFormat webMediaFormat)
Parameters
Type | Name | Description |
---|---|---|
WebMediaFormat | webMediaFormat |
Returns
Type | Description |
---|---|
DbGenericConversionFormat |
ToMediaConversionBase()
Creates a domain object of the currend db object
Declaration
public override MediaFormatBase ToMediaConversionBase()
Returns
Type | Description |
---|---|
MediaFormatBase |