GoDiagram Web Reference
LargestSizeKeepingAspectRatio Method

if both width and height are zero or negative, assume 1x1
Compute a SizeF that fits in target while maintaining the aspect ratio given by aspect.
Syntax
'Declaration
 
Public Shared Function LargestSizeKeepingAspectRatio( _
   ByVal target As SizeF, _
   ByVal aspect As SizeF _
) As SizeF
public static SizeF LargestSizeKeepingAspectRatio( 
   SizeF target,
   SizeF aspect
)

Parameters

target
aspect
if both width and height are zero or negative, assume 1x1
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoObject Class
GoObject Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback