Back to Aurora Vision Library website

You are here: Start » Function Reference » Image » Image Drawing » DrawDimensionLine

DrawDimensionLine


Header: AVL.h
Namespace: avl
Module: FoundationLite

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,
	float inHeadSize,
	float inScale,
	avl::MetricUnit::Type inMetricUnit,
	const int inFractionalDigitCount,
	float inTextSize = 12
)

Parameters

Name Type Range Default Description
Input will be modified ioImage Image&
Input value inSegment const Segment2D&
Input value inSegmentAlignment Optional<const CoordinateSystem2D&> NIL
Input value inColor const Pixel&
Input value inDrawingStyle const DrawingStyle&
Input value inHeadSize float 0.0 - 5.0f
Input value inScale float 0.0 - 1.0f px / mm
Input value inMetricUnit MetricUnit::Type MetricUnit::​Millimeters
Input value inFractionalDigitCount const int 0 - 100 3 How many characters the fractional part of the number should have
Input value inTextSize float 10.0 - 12.0f