Hi all. I have picture with some very small objects, viruses, for example. I know picture scale, 1:100000 for example. Is there some way to programmatic set ruler to display real size of measured object ?
For objects see: ScaleFactor, SetScaleFromPixels and SetScaleFromSelectionLen
Declaration property ScaleFactor: double;
Description ScaleFactor specifies the scale factor (default 1).
In the common representation X:Y (ex. 1:100000) is the Y value (100000). This value, with DpiX and DpiY (and measure unit MUnit), weight the measurements of areas and line lengths.
Example // Sets a scale factor of 1:100000 ImageEnVect1.ScaleFactor:=100000;
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);