boundingBoxFromLines

open fun boundingBoxFromLines(lines: List<List<PointF>>, @FloatRange(from = 0.0) lineWidth: Float): RectF

Calculates the bounding box from lines (specified in PDF coordinates).

Return

A rect defining the bounding box around the specified lines, including the width in calculations.

Parameters

lines

List of lines, where line is defined by the list of points in PDF coordinates.

lineWidth

Line width in PDF points.