Infobar

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

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 to 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 from 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 PiyelType 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 property InfobarHeight, which is internally limited to a maximum of 150 pixels.

Background color

The background color of the infobar is by default a semi-transparent white "rgba(255, 255, 255, 127)" and can be customized using the BarColor property in the category Colors.