CodeCarvings.Piczard
FreeCropConstraint Constructor(GfxUnit,Generic Nullable,Generic Nullable,Generic Nullable,Generic Nullable)
See Also  Send Feedback
CodeCarvings.Piczard Namespace > FreeCropConstraint Class > FreeCropConstraint Constructor : FreeCropConstraint Constructor(GfxUnit,Generic Nullable,Generic Nullable,Generic Nullable,Generic Nullable)

unit
The graphics unit in which the limits (MinWidth, MaxWidth, MinHeight and MaxHeight) are expressed.
minWidth
The minimum width of the crop area. If the value is null then no limit is set.
maxWidth
The maximum width of the crop area. If the value is null then no limit is set.
minHeight
The minimum height of the crop area. If the value is null then no limit is set.
maxHeight
The maximum height of the crop area. If the value is null then no limit is set.
Initializes a new instance of the FreeCropConstraint class and sets the limits (min-max width and height).

Syntax

Visual Basic (Declaration)  
Public Function New( _
   ByVal unit As GfxUnit, _
   ByVal minWidth As Nullable(Of Single), _
   ByVal maxWidth As Nullable(Of Single), _
   ByVal minHeight As Nullable(Of Single), _
   ByVal maxHeight As Nullable(Of Single) _
)
C#  
public FreeCropConstraint( 
   GfxUnit unit,
   Nullable<float> minWidth,
   Nullable<float> maxWidth,
   Nullable<float> minHeight,
   Nullable<float> maxHeight
)

Parameters

unit
The graphics unit in which the limits (MinWidth, MaxWidth, MinHeight and MaxHeight) are expressed.
minWidth
The minimum width of the crop area. If the value is null then no limit is set.
maxWidth
The maximum width of the crop area. If the value is null then no limit is set.
minHeight
The minimum height of the crop area. If the value is null then no limit is set.
maxHeight
The maximum 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.