Back to Adaptive Vision Library Lite website
You are here: Start » Image Drawing » DrawDimensionLine
![](../../img/icon/DrawDimensionLines.png)
DrawDimensionLine
Draws a dimension line on an image.
Syntax
void avl::DrawDimensionLine ( avl::Image& ioImage, const avl::Segment2D& inSegment, atl::Optional<const avl::CoordinateSystem2D&> inSegmentAlignment, const avl::Pixel& inColor, const avl::DrawingStyle& inDrawingStyle, float inHeadSize, float inScale, avl::MetricUnit::Type inMetricUnit, float inTextSize = 12 )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioImage | Image& | ||||
![]() |
inSegment | const Segment2D& | |||
![]() |
inSegmentAlignment | Optional<const CoordinateSystem2D&> | NIL | ||
![]() |
inColor | const Pixel& | |||
![]() |
inDrawingStyle | const DrawingStyle& | |||
![]() |
inHeadSize | float | 0.0 - ![]() |
5.0f | |
![]() |
inScale | float | 0.0 - ![]() |
1.0f | px / mm |
![]() |
inMetricUnit | MetricUnit::Type | MetricUnit::Millimeters | ||
![]() |
inTextSize | float | 10.0 - ![]() |
12.0f |