Back to FabImage Library website

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

DrawDimensionLine


Header: FIL.h
Namespace: fil
Module: FoundationLite

Draws a dimension line on an image.

Syntax

C++
C#
 
void fil::DrawDimensionLine
(
	fil::Image& ioImage,
	const fil::Segment2D& inSegment,
	ftl::Optional<const fil::CoordinateSystem2D&> inSegmentAlignment,
	const fil::Pixel& inColor,
	const fil::DrawingStyle& inDrawingStyle,
	float inHeadSize,
	float inScale,
	fil::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