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