TIEPolylineLayer.CalculateArea
Declaration
function CalculateArea(Units: TIEUnits): double;
Description
Returns the area covered by drawn area of the polyline layer.
Note:
◼Use
TImageEnView.SetScale to adjust the scale of units
◼Polyline must contain at least three points
◼Layer will be treated as a polygon even if not
closed◼Polyline measurement is less accurate than
other layer types// Show area of current polygon in MM
ShowMessage( 'Area is ' + IntToStr( Trunc( TIEPolylineLayer( ImageEnView1.CurrentLayer).CalculateArea( ieuMillimeters ) )) + ' mm' );
See Also
◼CalculateLength◼CalculateCentroid◼SetScale◼Dpi◼MeasureUnits