ImageEn, unit iexRulers

TIEViewRulerParams.Opacity

TIEViewRulerParams.Opacity

Declaration

property Opacity: Double;

Description

Specifies the transparency of the ruler background. Range is from 0 (fully transparent) to 1.0 (totally opaque).
If Opacity is < 1.0 the ruler will hover over the image rather than appear outside the image area.

Note:
◼To reduce "flashing" with transparent toolbars, you should set DoubleBuffered := True
◼You may want to darken the ruler text to improve readability
◼To be able to interact with the image that is "behind" the hover toolbar, you must make it non-interactive by hiding the grip area (set GripHeight to 0)

Default: 1.0

Example

// Make a mostly transparent ruler that hovers over the image
ImageEnView1.RulerParams.Opacity   := 0.25;
ImageEnView1.RulerParams.TextColor := clDarkGray;    // Make text more visible
ImageEnView1.DoubleBuffered        := True;          // Reduce excess painting
ImageEnView1.Update();

See Also

◼Color
◼MeasureColor
◼DoubleBuffered