CodeCarvings.Piczard
GetMaxHeight(Int32) Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > ScaledResizeConstraint Class > GetMaxHeight Method : GetMaxHeight(Int32) Method

maxHeight
The height of the rectangle in which the image must stay.
Initializes a new instance of the ScaledResizeConstraint class that allows to generate an image with a fixed height and a variable width; the size is expressed in pixels.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function GetMaxHeight( _
   ByVal maxHeight As Integer _
) As ScaledResizeConstraint
C#  
public static ScaledResizeConstraint GetMaxHeight( 
   int maxHeight
)

Parameters

maxHeight
The height of the rectangle in which the image must stay.

Return Value

The instance of the ScaledResizeConstraint class.

Remarks

If you want to obtain an image with a fixed height and a variable width, then you can set a very high value for the MaxSize.Width property.
The GetMaxWidth method allow to get an instance of the ScaledResizeConstraint class with the MaxSize.Width property set to the max value allowed by Piczard (Core.Drawing.MaxImageSize.Width).

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.