You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Standalone Functions > GetDistance Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.GetDistance Method

This function returns the distance in inches between 2 points of a GdPicture image.

C#
public Double GetDistance(
    int ImageID, 
    int Left1, 
    int Top1, 
    int Left2, 
    int Top2
);
Visual Basic
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
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
Left1 
Specifies the x-coordinate of the first point in pixel.  
Top1 
Specifies the y-coordinate of the first point in pixel.  
Left2 
Specifies the x-coordinate of the second point in pixel.  
Top2 
Specifies the y-coordinate of the second point in pixel.  
Returns

Double.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.