Back to Adaptive Vision Library website
You are here: Start » Function Reference » Image Drawing » DrawDimensionLine
Draws a dimension line on an image.
Syntax
C++
C#
void avl::DrawDimensionLine ( avl::Image& ioImage, const avl::Segment2D& inSegment, atl::Optional<const avl::CoordinateSystem2D&> inSegmentAlignment, const avl::Pixel& inColor, const avl::DrawingStyle& inDrawingStyle, atl::real inHeadSize, atl::real inScale, avl::MetricUnit::Type inMetricUnit, atl::real 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 | real | 0.0 - ![]() |
5.0f | |
![]() |
inScale | real | 0.0 - ![]() |
1.0f | px / mm |
![]() |
inMetricUnit | MetricUnit::Type | MetricUnit::Millimeters | ||
![]() |
inTextSize | real | 10.0 - ![]() |
12.0f |


