Skip to main content

BarcodeReader

Namespace: Wisej.Web.Ext.Barcode

Assembly: Wisej.Web.Ext.Barcode

A component for extending the functionality of the Wisej Camera to include barcode detection.

public class BarcodeReader : Component, IExtenderProvider

Constructors

Instance memberBarcodeReader()

Initializes a new instance of the BarcodeReader without a specified container.

Instance memberBarcodeReader(container)

Initializes a new instance of the BarcodeReader class with a specified container.

NameTypeDescription
containerIContainerAn IContainercontainer.

Properties

Instance memberCamera

Control: The Wisej Camera instance to attach to.

Instance memberScanMode

ScanMode: Returns or sets the mode in which the scanner should detect barcodes. (Default: Automatic)

Methods

Instance memberCanExtend(extendee)

ParameterTypeDescription
extendeeObject

Returns: Boolean.

Instance memberDecodeBarcode(image)

Decodes a barcode from the given image.

ParameterTypeDescription
imageImageThe image of the barcode.

Returns: String. The data encoded in the barcode.

Uses the ZXing.NET library to parse the image.

Instance memberResetScanner()

Resets the scanner in AutomaticOnce mode.

Instance memberScanImage()

Scans the last frame from the attached Camera for a barcode.

Either the ScanError

Events

Instance memberScanError

ScanEventHandler Fired when no barcode is detected in Manual mode.

Instance memberScanSuccess

ScanEventHandler Fired when the user scans a barcode.