Back to FabImage Library website
You are here: Start » Function Reference » Image » Image Drawing » 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 | |
---|---|---|---|---|---|
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 | |||
inFractionalDigitCount | const int | 0 - 100 | 3 | How many characters the fractional part of the number should have | |
inTextSize | float | 10.0 - | 12.0f |