'Declaration
Public Function GetDistance( _ ByVal ImageID As Integer, _ ByVal Left1 As Integer, _ ByVal Top1 As Integer, _ ByVal Left2 As Integer, _ ByVal Top2 As Integer _ ) As Double
public function GetDistance( ImageID: Integer; Left1: Integer; Top1: Integer; Left2: Integer; Top2: Integer ): Double;
Parameters
- ImageID
- A unique image identifier of the GdPicture image representing the image in use.
- Left1
- The horizontal (X) coordinate of the first point, in pixels.
- Top1
- The vertical (Y) coordinate of the first point, in pixels.
- Left2
- The horizontal (X) coordinate of the second point, in pixels.
- Top2
- The vertical (Y) coordinate of the second point, in pixels.
Return Value
The resulting distance between two points, in inches. The GetStat method can be subsequently used to determine if this method has been successful.