←Select platform

GetRulerLengthFromPoints Method

Summary
Gets the length of the ruler between two points.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public virtual LeadLengthD GetRulerLengthFromPoints( 
   LeadPointD startPoint, 
   LeadPointD endPoint, 
   double calibrationScale 
) 
- (double)rulerLengthFromPoint:(LeadPointD)startPoint to:(LeadPointD)endPoint scale:(double)calibrationScale; 
public LeadLengthD getRulerLengthFromPoints( 
   LeadPointD startPoint, 
   LeadPointD endPoint, 
   double calibrationScale 
) 
public:  
   virtual LeadLengthD^ GetRulerLengthFromPoints( 
      LeadPointD^ startPoint, 
      LeadPointD^ endPoint, 
      double calibrationScale 
   ) 
def GetRulerLengthFromPoints(self,startPoint,endPoint,calibrationScale): 

Parameters

startPoint
The starting point of the ruler.

endPoint
The ending point of the ruler.

calibrationScale
The ratio of the horizontal resolution (dots per inch or DPI) to the vertical resolution. For most images, the ratio is 1.

Return Value

The length of the ruler based on the calibrationScale.

Requirements

Target Platforms

Help Version 22.0.2023.7.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.