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 System.Single, _
   ByVal dpi As System.Single _
) As System.Integer
public System.int ToPixels( 
   System.float value,
   System.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 8.1, Windows 8.1, Windows 8, 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

View on GitHub