BarcodePosition

data class BarcodePosition(val topLeft: Point, val topRight: Point, val bottomRight: Point, val bottomLeft: Point)

A class representing position (or location) on a barcode in a frame. The position in specified in four corner points given relative to top left corner of the frame.

Since

1.0.0

Parameters

topLeft

represents x,y coordinates of the top-left corner.

topRight

represents x,y coordinates of the top-right corner.

bottomRight

represents x,y coordinates of the bottom-right corner.

bottomLeft

represents x,y coordinates of the bottom-left corner.

Constructors

Link copied to clipboard
fun BarcodePosition(topLeft: Point, topRight: Point, bottomRight: Point, bottomLeft: Point)

Functions

Link copied to clipboard
fun contains(point: Point): Boolean
fun contains(x: Int, y: Int): Boolean

Check the point inside of the Barcode.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rect: Rect
Link copied to clipboard
Link copied to clipboard