Version

GetRectangleForZoomFactor(RectangleF,Single,Boolean) Method

Creates a new rectangle based on the provided base rectangle and the zoom factor.
Syntax
'Declaration
 
Public Overloads Shared Function GetRectangleForZoomFactor( _
   ByVal baseRect As RectangleF, _
   ByVal zoomFactor As Single, _
   ByVal scaleDown As Boolean _
) As RectangleF
public static RectangleF GetRectangleForZoomFactor( 
   RectangleF baseRect,
   float zoomFactor,
   bool scaleDown
)

Parameters

baseRect
The base rectangle.
zoomFactor
The zoom factor.
scaleDown
Determines if the rectangle size and location will be multiplied or divided by the zoomFactor.

Return Value

The zoomed rectangle.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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