Show / Hide Table of Contents

Interface IProportions

Represents proportions by image width (X) and height (Y).

Namespace: AdaptiveImages.Core
Assembly: AdaptiveImages.dll
Syntax
public interface IProportions

Properties

Ratio

Ratio, effectively width divided by height

Declaration
double Ratio { get; }
Property Value
Type Description
double

X

Gets the relative width, such as 16 for 16:9 widescreen proportions

Declaration
int X { get; }
Property Value
Type Description
int

Y

Gets the relative height, such as 9 for 16:9 widescreen proportions

Declaration
int Y { get; }
Property Value
Type Description
int

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
☀
☾