LEADTOOLS Forms (Leadtools.Forms assembly)
LEAD Technologies, Inc

ConvertFromPixels Method






The value that is going to be converted measured in Leadtools.Forms.LogicalUnit.Pixel.
Represents the DPI of the source value.
The unit of measurement of the destination value.
Returns the value of the source value that is measured in Leadtools.Forms.LogicalUnit.Pixel, converted to its equivalent in the specified destination unit of measure.
Syntax
public static double ConvertFromPixels( 
   double sourceValue,
   double sourceDpi,
   LogicalUnit destinationUnit
)
'Declaration
 
Public Shared Function ConvertFromPixels( _
   ByVal sourceValue As Double, _
   ByVal sourceDpi As Double, _
   ByVal destinationUnit As LogicalUnit _
) As Double
'Usage
 
Dim sourceValue As Double
Dim sourceDpi As Double
Dim destinationUnit As LogicalUnit
Dim value As Double
 
value = LogicalUnitConverter.ConvertFromPixels(sourceValue, sourceDpi, destinationUnit)
public static double ConvertFromPixels( 
   double sourceValue,
   double sourceDpi,
   LogicalUnit destinationUnit
)
 function Leadtools.Forms.LogicalUnitConverter.ConvertFromPixels( 
   sourceValue ,
   sourceDpi ,
   destinationUnit 
)
public:
static double ConvertFromPixels( 
   double sourceValue,
   double sourceDpi,
   LogicalUnit destinationUnit
) 

Parameters

sourceValue
The value that is going to be converted measured in Leadtools.Forms.LogicalUnit.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 destinationUnit. The DPI is needed to define the area that is occuppied by one pixel.
Requirements

Target Platforms: 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

Reference

LogicalUnitConverter Class
LogicalUnitConverter Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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