Barcode Ar Rectangle Highlight

Defined under the namespace Scandit.Datacapture.Barcode.Ar.Ui

BarcodeArRectangleHighlight
class BarcodeArRectangleHighlight : ScanditHTMLElement, BarcodeArHighlight

Added in version 7.1.0

A type of highlight that draws rectangles on top of barcodes. Highlight styles are customizable. Here are some examples:

../../../_images/rectangle_highlight.png ../../../_images/rectangle_highlight_icon.png

Default style.

Customized brush and icon.

create(barcode)
static create(barcode: Barcode): BarcodeArRectangleHighlight

Added in version 7.1.0

Constructs a new instance with the given barcode. To add buttons, you can use the append method.

barcode
get barcode(): Barcode

Added in version 7.1.0

The barcode instance for the annotation.

brush
brush: Brush

Added in version 7.1.0

The brush used for visualizing a recognized barcode in the UI. By default, the brush has a blue fill color with 45% alpha, blue stroke and a stroke width of 2.

icon
icon: ScanditIcon | null

Added in version 7.1.0

The icon used for visualizing a recognized barcode in the UI. Is null by default.

width
width: number

Added in version 7.3.0

The width of the barcode.

height
height: number

Added in version 7.3.0

The height of the barcode.

updatePosition(point, transformOrigin, rotationAngle)
updatePosition(point: Point,
        transformOrigin: Point,
        rotationAngle: number): void

Added in version 7.3.0

Update the position of the highlight.

Param

point The point to update the position to in pixels.

Param

transformOrigin The transform origin in percentage of the width and height of the annotation.

Param

rotationAngle The rotation angle in degrees. Default is 0.