Version

ToPixels(Single,Single) Method

Converts the specified value into a pixel value at the specified resolution.
Syntax
'Declaration
 
Public Overloads Function ToPixels( _
   ByVal value As Single, _
   ByVal dpi As Single _
) As Integer
public int ToPixels( 
   float value,
   float dpi
)

Parameters

value
A value which represents a linear graphical quantity. The implied unit of measure is defined by the value of the Unit property.
dpi
The resolution, expressed in dots per inch.
Requirements

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