LEADTOOLS JavaScript (Leadtools.Annotations.Core)

GetRulerLengthAsStringFromPoints Method

Show in webframe
The starting point of the ruler.
The ending point of the ruler.
The ratio of the horizontal resolution (dots per inch or DPI) to the vertical resolution. For most images, the ratio is 1.
Gets the length of the ruler between two points as a string.
Syntax
 function Leadtools.Annotations.Core.AnnProtractorObject.getRulerLengthAsStringFromPoints( 
   startPoint ,
   endPoint ,
   calibrationScale 
)

Parameters

ParameterTypeDescription
startPointLeadPointDThe starting point of the ruler.
endPointLeadPointDThe ending point of the ruler.
calibrationScaledoubleThe ratio of the horizontal resolution (dots per inch or DPI) to the vertical resolution. For most images, the ratio is 1.

Return Value

TypeDescription
string The length of the ruler as a string based on the calibrationScale.
See Also

Reference

AnnProtractorObject Object
AnnProtractorObject Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.