FormXDocumentRegion

data class FormXDocumentRegion(val topLeft: FormXPointF, val topRight: FormXPointF, val bottomRight: FormXPointF, val bottomLeft: FormXPointF, val boundingBox: FormXRectF)

FormXDocumentRegion represents a region in the document.

Constructors

Link copied to clipboard
fun FormXDocumentRegion(topLeft: FormXPointF, topRight: FormXPointF, bottomRight: FormXPointF, bottomLeft: FormXPointF, boundingBox: FormXRectF)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun area(): Float
Link copied to clipboard
fun scale(xScale: Float, yScale: Float): FormXDocumentRegion

Scale the region by the given scale factors.

Link copied to clipboard

Convert bounding box to a FormXRectF.

Link copied to clipboard

Convert the region to a list of vertices.

Link copied to clipboard

Translate the region by the given x and y values.

Properties

Link copied to clipboard

The bottom left point of the region.

Link copied to clipboard

The bottom right point of the region.

Link copied to clipboard

The bounding box of the region.

Link copied to clipboard

The top left point of the region.

Link copied to clipboard

The top right point of the region.