ImageEn, unit ievect

TImageEnVect.SetScaleFromPixels

TImageEnVect.SetScaleFromPixels


Declaration

procedure SetScaleFromPixels(px: integer; mm: double);


Description

SetScaleFromPixels changes the ScaleFactor property such that px pixels correspond to one mm (MUnit).


Example

// This code makes so that 100 pixels are equals to 1 meter.
ImageEnVect1.MUnit := ieuMeters;
ImageEnVect1.SetScaleFromPixels(100, 1);