Version

ConvertFromLogicalPixels(Double,Visual) Method

Converts the logical pixel representation into screen pixels.
Syntax
'Declaration
 
Public Overloads Shared Function ConvertFromLogicalPixels( _
   ByVal logicalPixelValue As Double, _
   ByVal relativeVisual As Visual _
) As Integer
public static int ConvertFromLogicalPixels( 
   double logicalPixelValue,
   Visual relativeVisual
)

Parameters

logicalPixelValue
The logical pixel value to convert.
relativeVisual
An element that is used to obtain the required DPI information or null to use the default dpi information.

Return Value

The screen pixel representation of the specified logical pixels.
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