PolygonAnnotation

constructor(@IntRange(from = 0) pageIndex: Int, points: @JvmSuppressWildcards List<PointF>)

Creates a new polygon annotation.

Parameters

pageIndex

Page to which this annotation will be attached to.

points

List of points in polygon annotation.


constructor(@IntRange(from = 0) pageIndex: Int, points: @JvmSuppressWildcards List<PointF>, scale: Scale, precision: MeasurementPrecision)

Creates a measurement rectangular area annotation. Will throw an exception if Measurement Tools are not licensed.

Parameters

pageIndex

Page to which this annotation will be attached to.

points

List of points in polygon annotation.

scale

Measurement com.pspdfkit.annotations.measurements.Scale for the annotation.

precision

Measurement MeasurementPrecision for the annotation.