ImageEn, unit iexLayers

TIETextLayer.RulerUnits

TIETextLayer.RulerUnits


Declaration


property RulerUnits: TIEUnits;


Description


Specifies the units when IsRuler is enabled.

Notes:
- Use MeasureDecimalPlaces to specify the number of decimal places
- Unit text can be edited with MeasureUnits
- Use TImageEnView.SetScale to adjust the scale of units

Default: Specified by DefaultMeasureUnit (Defaults to ieuPixels)


Examples


// Set ruler units to MM
TIETextLayer( ImageEnView1.CurrentLayer).RulerUnits := ieuMillimeters;

// Add a measure box layer showing rectangular area sizes in CM (to one decimal place)
ImageEnView1.LayersAdd( ielkText , 100, 100, 250, 250 );
TIETextLayer( ImageEnView1.CurrentLayer).IsRuler := True;
TIETextLayer( ImageEnView1.CurrentLayer).RulerUnits := ieuCentimeters;
IEGlobalSettings().MeasureDecimalPlaces := 1;
ImageEnView1.Update();

// Add a measure box layer showing elliptical area sizes in inches
ImageEnView1.LayersAdd( ielkText , 100, 100, 250, 250 );
TIETextLayer( ImageEnView1.CurrentLayer).IsRuler := True;
TIETextLayer( ImageEnView1.CurrentLayer).RulerUnits := ieuInches;
TIETextLayer( ImageEnView1.CurrentLayer).BorderShape := iesEllipse;
ImageEnView1.Update();


See Also


- MeasureDecimalPlaces
- MeasureUnits
- IsRuler
- RulerValue
- SetScale
- Dpi