Infobar

The attributes and functions explained on this page can be found in the Infobar category.

The display elements in the infobar can be used to display various information about shape values, pixel values, or the image size. Each element can be shown or hidden. In addition, the entire infobar can be adjusted in height or completely hidden.

The positioning of the elements in the infobar is fixed and cannot be customized. If such adjustments are nevertheless necessary, you can hide the corresponding elements using the InfobarItems property and implement them yourself with your own controls and place them on the Image Control infobar. The available infobar elements from left to right are:

Infobar 1:

ShapeValue

Calculated value for the currently displayed shape. This value is calculated by the function bound to the ShapeValueFormat property.

The standard formatting function ShapeValueFormatter returns a specific value depending on the selected shape type:

  • coordinate of the point
  • length of the line
  • area of the square, rectangle, circle, or ellipse
  • number of points of the polygon

This example describes the implementation and use of a custom formatter function.

PixelColor

Color value(s) of the selected pixel. This value is calculated by the function bound to the PixelColorFormat property.

The standard formatting function PixelColorFormatter returns a specific value depending on the selected color space. Selectable color formats are: Gray, RGB, RGBa, HSV, HSV FULL, HLS, HLS FULL, Lab, YUV, YCrCb. You can also set whether and how rounding should take place. You can choose between 0–3 Decimals and Unrounded. The PixelType can also be set. Possible values here are 8-Bit (USINT) and 16-Bit (UINT).

This example describes the implementation and use of a custom formatter function.

PixelPosition

Position of the selected pixel.

ImageSize

Original size of the currently displayed image.

Size settings

The infobar offers customization options for its own height via the InfobarHeight property, which is internally limited to a maximum of 150 pixels.

Background color

By default, the background color of the Infobar uses the color of the “Base” theme "rgba(246, 247, 248, 1.0)", or R: 246, G: 247, B: 248, A: 255, and can be customized using the BarColor property in the Colors category.