ImageEn, unit ievect

TImageEnVect.GetPolylineCentroid

TImageEnVect.GetPolylineCentroid


Declaration

function GetPolylineCentroid(hobj: integer): TPoint;


Description

GetPolylineCentroid calculates x, y centroid coordinates of the specified polyline. The point is in bitmap coordinates.


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of GetPolylineCentroid, use: TIEPolylineLayer.CalculateCentroid

pt := TIEPolylineLayer( ImageEnView1.CurrentLayer).CalculateCentroid();