Search Results for

    Show / Hide Table of Contents

    Class DbImageConversionFormat

    Defines the values to use for converting an image

    Inheritance
    System.Object
    DbMediaConversionFormatBase
    DbImageConversionFormat
    Implements
    IResizeFormat
    Inherited Members
    DbMediaConversionFormatBase.ToDbMediaConversion(MediaFormatBase)
    DbMediaConversionFormatBase.Id
    DbMediaConversionFormatBase.MediaConversionTypeId
    DbMediaConversionFormatBase.MediaConversionType
    DbMediaConversionFormatBase.Name
    DbMediaConversionFormatBase.Format
    DbMediaConversionFormatBase.MediaFormatOutputType
    DbMediaConversionFormatBase.SystemFormat
    DbMediaConversionFormatBase.Effects
    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.Core.Common.DbEntities
    Assembly: ImageVault.Core.dll
    Syntax
    public class DbImageConversionFormat : DbMediaConversionFormatBase

    Constructors

    DbImageConversionFormat()

    Initializes a new instance of the DbImageConversionFormat class.

    Declaration
    public DbImageConversionFormat()

    DbImageConversionFormat(ImageFormat)

    Initializes a new instance of the DbImageConversionFormat class.

    Declaration
    public DbImageConversionFormat(ImageFormat format)
    Parameters
    Type Name Description
    ImageFormat format

    DbImageConversionFormat(DbImageConversionFormat)

    Initializes a new instance of the DbImageConversionFormat class.

    Declaration
    public DbImageConversionFormat(DbImageConversionFormat template)
    Parameters
    Type Name Description
    DbImageConversionFormat 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.

    CompressionQuality

    Get/Sets the CompressionQuality of the MediaConversion

    Declaration
    public byte? CompressionQuality { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Byte>

    A value from 0 to 100 where 0 is minimum quality and 100 is maximum quality

    Dpi

    Get/Sets the Dpi of the MediaConversion

    Declaration
    public int? Dpi { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    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

    IccProfile

    Get/Sets the IccProfile of the MediaConversion

    Declaration
    public string IccProfile { get; set; }
    Property Value
    Type Description
    System.String

    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

    ToDbImageConversion(ImageFormat)

    Creates a dbobject based on the supplied domain object

    Declaration
    public static DbMediaConversionFormatBase ToDbImageConversion(ImageFormat imageFormat)
    Parameters
    Type Name Description
    ImageFormat imageFormat
    Returns
    Type Description
    DbMediaConversionFormatBase

    ToMediaConversionBase()

    Creates a domain object of the currend db object

    Declaration
    public override MediaFormatBase ToMediaConversionBase()
    Returns
    Type Description
    MediaFormatBase
    Overrides
    DbMediaConversionFormatBase.ToMediaConversionBase()

    Implements

    IResizeFormat
    In This Article
    Back to top (c) Meriworks 2002-2022