TImageEnVect.SetScaleFromPixels
Declaration
procedure SetScaleFromPixels(px: integer; mm: double);
Description
SetScaleFromPixels changes the
ScaleFactor property such that px pixels correspond to one mm (
MUnit).
// This code makes so that 100 pixels are equals to 1 meter.
ImageEnVect1.MUnit := ieuMeters;
ImageEnVect1.SetScaleFromPixels(100, 1);
Transition Information
If you are transitioning your code to
TImageEnView Layers, instead of SetScaleFromPixels, use:
SetScale
ImageEnView1.SetScale( 100, 4, ieuCentimeters );