LEADTOOLS JavaScript (Leadtools.Annotations.Core)
LEAD Technologies, Inc

Convert Method


Value to be converted. This is in sourceUnit units.
The source unit.
The destination unit.
Converts a value from one unit to another.
Syntax
 function Leadtools.Annotations.Core.AnnUnitConverter.convert( 
   value ,
   sourceUnit ,
   destinationUnit 
)
!MISSING Scrap '_RTJavaScript_Method_SYNTAX'!

Parameters

ParameterTypeDescription
valuedoubleValue to be converted. This is in sourceUnit units.
sourceUnitAnnUnitThe source unit.
destinationUnitAnnUnitThe destination unit.

Return Value

TypeDescription
double The value of value in destinationUnit.
Remarks

Use this method to convert from any unit to any other unit, except pixels. For pixels conversions, use the ConvertToPixels and ConvertFromPixels methods. These methods accept the DPI (dots per inch) value to use in the conversion.

See Also

Reference

AnnUnitConverter Object
AnnUnitConverter Members

 

 


Products | Support | Contact Us | Copyright Notices

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