DrawDimensionLine
Draws a dimension line on an image.
Syntax
C++
Python
def DrawDimensionLine( ioImage: Image, inSegment: Segment2D, inColor: Pixel, /, *, inSegmentAlignment: CoordinateSystem2D | None = None, inDrawingStyle: DrawingStyle = DrawingStyle(DrawingMode.HighQuality, 1.0, 3.0, False, None, 2.0), inHeadSize: float = 5.0, inScale: float = 1.0, inMetricUnit: MetricUnit = MetricUnit.Millimetres, inFractionalDigitCount: int = 3, inTextSize: float = 12.0 ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioImage | Image | |||
![]() |
inSegment | Segment2D | |||
![]() |
inSegmentAlignment | CoordinateSystem2D | None | None | ||
![]() |
inColor | Pixel | |||
![]() |
inDrawingStyle | DrawingStyle | DrawingStyle(DrawingMode.HighQuality, 1.0, 3.0, False, None, 2.0) | ||
![]() |
inHeadSize | float | 0.0 - ![]() |
5.0 | |
![]() |
inScale | float | 0.0 - ![]() |
1.0 | px / mm |
![]() |
inMetricUnit | MetricUnit | MetricUnit.Millimetres | ||
![]() |
inFractionalDigitCount | int | 0 - 100 | 3 | How many characters the fractional part of the number should have |
![]() |
inTextSize | float | 10.0 - ![]() |
12.0 |



