Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Unit Measurement

Measurement Grooper.IP

Serves as the abstract base class for all unit-aware measurement types in Grooper.

Remarks

Unit Measurement extends Measurement to represent values that are explicitly associated with a unit of measure, such as pixels, inches, points, centimeters, millimeters, percent, or other supported units.

Key distinction: Unit Measurement types support pixel units (px) and are typically used for configuring image processing and IP Commands, where device-dependent measurements are required. This allows for precise control over image regions, borders, and other pixel-based operations.

This abstraction is used for measurements that may be device-dependent (such as pixels or percent) or require conversion between different unit systems. It provides a foundation for types like Unit Size, Unit Point, Unit Rectangle, and Unit Border, which allow users to configure values in a flexible, unit-aware manner.

When implementing or configuring a Unit Measurement, ensure that the units are appropriate for the context in which the value will be used, and that conversions are handled as needed for downstream processing.

Derived Types

There are 6 implementations of Unit Measurement.

Unit Border Defines the size of a border on each side of a rectangle using unit-aware values.
Unit Line Length Defines the minimum length of lines on the horizontal and vertical axis using unit-aware values.
Unit Point Defines a point in 2D space using unit-aware values for the X and Y coordinates.
Unit Range Represents a range of distances using unit-aware string values for minimum and maximum.
Unit Rectangle Defines a rectangle in terms of left, top, width, and height using unit-aware values.
Unit Size Defines the size of a rectangle in terms of width and height using unit-aware values.
Notification