Show / Hide Table of Contents

Class Dimensions

Represents image dimensions.

Inheritance
object
Dimensions
Implements
IDimensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: AdaptiveImages.Core
Assembly: AdaptiveImages.dll
Syntax
public class Dimensions : IDimensions

Constructors

Dimensions()

Creates an empty instance with no size specified.

Declaration
public Dimensions()

Dimensions(int, int)

Creates an instance with a specific width and height.

Declaration
public Dimensions(int width, int height)
Parameters
Type Name Description
int width
int height

Properties

Height

Image height in pixels.

Declaration
public int Height { get; set; }
Property Value
Type Description
int

Orientation

Gets the image orientation based on the image width and height.

Declaration
public Orientation Orientation { get; }
Property Value
Type Description
Orientation

Proportions

Gets normalized proportions calculated from the image width and height.

Declaration
public Proportions Proportions { get; }
Property Value
Type Description
Proportions

Width

Image width in pixels.

Declaration
public int Width { get; set; }
Property Value
Type Description
int

Implements

IDimensions

Extension Methods

ImageExtensions.GetCultureSpecificImageAttribute<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
ImageExtensions.GetImageConstraints<TParent>(TParent, string)
ImageExtensions.GetImageConstraints<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetImageRenderSettings<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetImageRenderSettings<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>, FormFactor)
ImageExtensions.GetProportionsConstraint<TParent>(TParent, string)
ImageExtensions.GetProportionsConstraint<TParent>(TParent, string, FormFactor)
ImageExtensions.GetProportionsConstraint<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetRequiredImageAttribute<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
ImageExtensions.GetSizeConstraint<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
☀
☾
In this article
Back to top
Documentation applies to: Adaptive Images 2.x
☀
☾