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

ConvertToPixels Method






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

Parameters

sourceValue
The value that is going to be converted.
sourceUnit
The unit of measurement of the source value.
destinationDpi
Represents the DPI of the destination value.
Remarks
Convert converts a value measured in any unit that is specified by sourceUnit to pixels. The DPI is needed to define the area that is occuppied by one pixel.
Example
For an example, refer to Width.
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