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.
Example
c := ImageEnVect1.GetPolylineCentroid( hobj );
Transition Information
If you are transitioning your code to
TImageEnView Layers, instead of GetPolylineCentroid, use:
TIEPolylineLayer.CalculateCentroid
pt := TIEPolylineLayer( ImageEnView1.CurrentLayer).CalculateCentroid();