LEADTOOLS Forms (Leadtools.Forms assembly)

Show in webframe

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
) 

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 occupied by one pixel.
Example
For an example, refer to Width.
Requirements

Target Platforms

See Also

Reference

LogicalUnitConverter Class
LogicalUnitConverter Members

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