Class FormFactorConstraint
Represents a set of image constraints for a single image or form factor.
Inherited Members
Namespace: AdaptiveImages.Core
Assembly: AdaptiveImages.dll
Syntax
public class FormFactorConstraint
Constructors
FormFactorConstraint(IProportions?, ISizeConstraint?, FormFactor)
Creates a form factor constraint, optionally for a specific form factor.
Declaration
public FormFactorConstraint(IProportions? proportionsConstraint, ISizeConstraint? sizeConstraint, FormFactor formFactor = (FormFactor)7)
Parameters
Type | Name | Description |
---|---|---|
IProportions | proportionsConstraint | |
ISizeConstraint | sizeConstraint | |
FormFactor | formFactor |
Properties
FormFactor
Gets or sets the form factor.
Declaration
public FormFactor FormFactor { get; set; }
Property Value
Type | Description |
---|---|
FormFactor |
ProportionsConstraint
Gets or sets proportions constraint.
Declaration
public IProportions? ProportionsConstraint { get; set; }
Property Value
Type | Description |
---|---|
IProportions |
SizeConstraint
Gets or sets size constraint.
Declaration
public ISizeConstraint? SizeConstraint { get; set; }
Property Value
Type | Description |
---|---|
ISizeConstraint |