ImageEn, unit ievect

TImageEnVect.SetScaleFromSelectionLen

TImageEnVect.SetScaleFromSelectionLen


Declaration

procedure SetScaleFromSelectionLen(mm: double);


Description

SetScaleFromSelectionLen makes the perimeter of the selection region correspond to one mm (MUnit) by changing ScaleFactor property.



Example

// This computes scalefactor so that the length of the current selection measures 5 millimeters.
TImageEnVect1.MUnit := ieuMillimeters;
TImageEnVect1.SetScaleFromSelectionLen(5);