Skip to content

GetPixelsDistance

function

Delphi
function GetPixelsDistance (x1: LongInt; y1: LongInt; x2: LongInt; y2: LongInt): Double;
C++Builder
double __fastcall GetPixelsDistance(System::LongInt x1, System::LongInt y1, System::LongInt x2, System::LongInt y2);
C#
public double GetPixelsDistance(int x1, int y1, int x2, int y2);
VB.NET
Public Function GetPixelsDistance(x1 As Integer, y1 As Integer, x2 As Integer, y2 As Integer) As Double
C++/Qt
double GetPixelsDistance (int x1, int y1, int x2, int y2);

Returns the distance, in pixels, between the pixel located at the (x1, y1) coordinates and the pixel located at the (x2, y2) coordinates.