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

Logical Measurement

Measurement Grooper.IP

Serves as the abstract base class for all logical (unit-aware, device-independent) measurement types in Grooper.

Remarks

Logical Measurement extends Measurement to represent values that are specified in logical, device-independent units, such as inches, points, centimeters, or millimeters. Pixel units (px) are not supported in Logical Measurement types. These measurements are typically used outside of image processing, in scenarios where physical dimensions must be preserved regardless of device resolution or scaling.

This abstraction is the foundation for types like Logical Size, Logical Point, and Logical Rectangle, which allow users to configure values in physical units for consistent interpretation across different devices and rendering contexts.

When implementing or configuring a Logical Measurement, ensure that the units are appropriate for the logical context in which the value will be used, and that conversions to device-dependent units are performed as needed.

Derived Types

There are 5 implementations of Logical Measurement.

Logical Border Defines the size of a border on each side of a rectangle using logical (unit-aware) values.
Logical Point Defines a point in 2-dimensional space using logical (unit-aware) values for each axis.
Logical Range Defines a range of distances.
Logical Rectangle Defines a rectangle in terms of top, left, width, and height using logical (unit-aware) values.
Logical Size Defines the size of a rectangle in terms of width and height using logical (unit-aware) values.
Notification