CodeCarvings.Piczard
FixedAspectRatioCropConstraint Constructor(Single,SizeDimension,Generic Nullable,Generic Nullable)
See Also  Send Feedback
CodeCarvings.Piczard Namespace > FixedAspectRatioCropConstraint Class > FixedAspectRatioCropConstraint Constructor : FixedAspectRatioCropConstraint Constructor(Single,SizeDimension,Generic Nullable,Generic Nullable)

aspectRatio
The fixed aspect ratio (width:height) of the crop area.
limitedDimension
The dimension (width or height) to which limits (Min / Max) refers.
min
The minimum width or height of the crop area. If the value is null then no limit is set.
max
The maximum width or height of the crop area. If the value is null then no limit is set.

Initializes a new instance of the FixedAspectRatioCropConstraint class; sets the fixed AspectRatio (width / height) and the limits (expressed in pixels).

Syntax

Visual Basic (Declaration)  
Public Function New( _
   ByVal aspectRatio As Single, _
   ByVal limitedDimension As SizeDimension, _
   ByVal min As Nullable(Of Integer), _
   ByVal max As Nullable(Of Integer) _
)
C#  
public FixedAspectRatioCropConstraint( 
   float aspectRatio,
   SizeDimension limitedDimension,
   Nullable<int> min,
   Nullable<int> max
)

Parameters

aspectRatio
The fixed aspect ratio (width:height) of the crop area.
limitedDimension
The dimension (width or height) to which limits (Min / Max) refers.
min
The minimum width or height of the crop area. If the value is null then no limit is set.
max
The maximum width or height of the crop area. If the value is null then no limit is set.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.