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.
- C#
- VB.NET
public class BarcodeReader : Component, IExtenderProvider
Public Class BarcodeReader
Inherits Component
Implements IExtenderProvider
Constructors
BarcodeReader()
Initializes a new instance of the BarcodeReader without a specified container.
BarcodeReader(container)
Initializes a new instance of the BarcodeReader class with a specified container.
| Name | Type | Description |
|---|---|---|
| container | IContainer | An IContainercontainer. |
Properties
Camera
Control: The Wisej Camera instance to attach to.
ScanMode
ScanMode: Returns or sets the mode in which the scanner should detect barcodes. (Default: Automatic)
Methods
CanExtend(extendee)
| Parameter | Type | Description |
|---|---|---|
| extendee | Object |
Returns: Boolean.
DecodeBarcode(image)
Decodes a barcode from the given image.
| Parameter | Type | Description |
|---|---|---|
| image | Image | The image of the barcode. |
Returns: String. The data encoded in the barcode.
Uses the ZXing.NET library to parse the image.
ResetScanner()
Resets the scanner in AutomaticOnce mode.
ScanImage()
Scans the last frame from the attached Camera for a barcode.
Either the ScanError
Events
ScanError
ScanEventHandler Fired when no barcode is detected in Manual mode.
ScanSuccess
ScanEventHandler Fired when the user scans a barcode.