Tracked Barcode View
Defined under the namespace Scandit.Datacapture.Barcode.Tracking.Ui
- TrackedBarcodeViewOptions
interface TrackedBarcodeViewOptions
Added in version 6.3.0
Provides a way to set different options for how the TrackedBarcodeView will be shown.
- size
size?: Size
Added in version 6.3.0
The expected size of the view.
Set either this or scale to set a specific size for the TrackedBarcodeView.
- scale
scale?: number
Added in version 6.3.0
The scaling factor to use to size the view. The value should be a positive number.
Set either this or size to set a specific size for the TrackedBarcodeView.
- TrackedBarcodeView
class TrackedBarcodeView
Added in version 6.3.0
A view that can be shown for a TrackedBarcode through a BarcodeTrackingAdvancedOverlay.
- withHTMLElement(element, options)
static withHTMLElement(element: HTMLElement, options: TrackedBarcodeViewOptions | null): Promise<TrackedBarcodeView>
Added in version 6.3.0
Create a view based on an HTML element.
Certain elements, e.g. embedded images cannot be rendered this way. Suitable for simple HTML elements that e.g. consist of colors, shapes and text. For more advanced views, use withBase64EncodedData(). As acquiring the view this way causes quality loss, we suggest to pass a view that’s double the size of what’s expected and scale it down using TrackedBarcodeViewOptions.scale.
- withBase64EncodedData(data, options)
static withBase64EncodedData(data: string, options: TrackedBarcodeViewOptions | null): Promise<TrackedBarcodeView>
Added in version 6.3.0
Create a view based on base64 encoded data. The image data should be image/png.