Class Dimensions
Represents image dimensions.
Implements
Inherited Members
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 |