Leadtools.Forms Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ConvertFromPixels Method
See Also 
Leadtools.Forms Namespace > LogicalUnitConverter Class : ConvertFromPixels Method



sourceValue
The value that is going to be converted measured in .Pixel.
sourceDpi
Represents the DPI of the source value.
destinationUnit
The unit of measurement of the destination value.
sourceValue
The value that is going to be converted measured in .Pixel.
sourceDpi
Represents the DPI of the source value.
destinationUnit
The unit of measurement of the destination value.
Returns the value of the source value that is measured in .Pixel, converted to its equivalent in the specified destination unit of measure.

Syntax

Visual Basic (Declaration) 
Public Shared Function ConvertFromPixels( _
   ByVal sourceValue As Double, _
   ByVal sourceDpi As Double, _
   ByVal destinationUnit As LogicalUnit _
) As Double
Visual Basic (Usage)Copy Code
Dim sourceValue As Double
Dim sourceDpi As Double
Dim destinationUnit As LogicalUnit
Dim value As Double
 
value = LogicalUnitConverter.ConvertFromPixels(sourceValue, sourceDpi, destinationUnit)
C# 
public static double ConvertFromPixels( 
   double sourceValue,
   double sourceDpi,
   LogicalUnit destinationUnit
)
C++/CLI 
public:
static double ConvertFromPixels( 
   double sourceValue,
   double sourceDpi,
   LogicalUnit destinationUnit
) 

Parameters

sourceValue
The value that is going to be converted measured in .Pixel.
sourceDpi
Represents the DPI of the source value.
destinationUnit
The unit of measurement of the destination value.

Remarks

Convert converts a value measured in pixels to any unit that is specified by . The DPI is needed to define the area that is occuppied by one pixel.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features