Declarationfunction GetSelectionLen: double;
Returns the length (perimeter) of current selection.
If the selection is composed of only two points, the line length is returned. If the selection is composed of three or more points, the perimeter is returned.
If you are transitioning your code to TImageEnView Layers
, instead of GetSelectionLen, use: CalcSelectionLen
l := ImageEnView1.CalcSelectionLen();