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:
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.
- 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.
- 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.