Version

ScaleSize(SizeF) Method

Returns the scaled size of the control at the target resolution, based on the control's current resolution, expressed in DPI (dots per inch).
Syntax
'Declaration
 
Public Function ScaleSize( _
   ByVal targetDpi As SizeF _
) As Size
public Size ScaleSize( 
   SizeF targetDpi
)

Parameters

targetDpi
The resolution, expressed in dots per inch, for which to calculate the size.

Return Value

A Size struct describing the control's size at the specified resolution.
Remarks

This method can be used to calculate the ideal size at which to render the control when using the SaveTo method.

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