TIEPolylineLayer.CalculateCentroid
Declaration
function CalculateCentroid(PointBase: TIEPointBase = iepbRange): TPoint;
Description
Calculates the coordinates of the selection's centroid (in bitmap coordinates).
The centroid is the geometric center of a shape, i.e. the mean position of all the points in the figure.
// Show area of current polygon in MM
ShowMessage( 'Centroid is ' + IntToStr( TIEPolylineLayer( ImageEnView1.CurrentLayer).CalculateCentroid().X ) + ',' + IntToStr( TIEPolylineLayer( ImageEnView1.CurrentLayer).CalculateCentroid().Y ));
See Also
◼CalculateArea◼CalculateLength◼SetScale◼Dpi◼MeasureUnits