LEADTOOLS Forms (Leadtools.Forms assembly)

ConvertToPixels Method

Show in webframe





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
) 

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

See Also

Reference

LogicalUnitConverter Class
LogicalUnitConverter Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 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