Version

ResolvePixelBounds(Rectangle,Rectangle) Method

Returns a rectangle expressed as a percentage of another rectangle.
Syntax
'Declaration
 
Public Overloads Shared Function ResolvePixelBounds( _
   ByVal sourceBounds As Rectangle, _
   ByVal percentBounds As Rectangle _
) As Rectangle
public static Rectangle ResolvePixelBounds( 
   Rectangle sourceBounds,
   Rectangle percentBounds
)

Parameters

sourceBounds
The source rectangle.
percentBounds
The percent values to take from the source for generating the return value.

Return Value

A rectangle with size and location taken from percentBounds and sourceBounds.
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