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

GetRulerLengthFromPoints Method


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.
Syntax
 function Leadtools.Annotations.Core.AnnProtractorObject.getRulerLengthFromPoints( 
   startPoint ,
   endPoint ,
   calibrationScale 
)
!MISSING Scrap '_RTJavaScript_Method_SYNTAX'!

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
LeadLengthD The length of the ruler based on the calibrationScale.
See Also

Reference

AnnProtractorObject Object
AnnProtractorObject Members

 

 


Products | Support | Contact Us | Copyright Notices

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