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);


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of SetScaleFromSelectionLen, use: SetScale

ImageEnView1.SetScale( ImageEnView1.SelectedRect.Width, 1, ImageEnView1.SelectedRect.Height, 1, ieuInches );