Interface IBarcodeReader
- Namespace
- ZXing
- Assembly
- zxing.dll
Interface for a smart class to decode the barcode inside a bitmap object
public interface IBarcodeReader
Properties
Options
Specifies some options which influence the decoding process
DecodingOptions Options { get; set; }
Property Value
Methods
Decode(byte[], int, int, BitmapFormat)
Decodes the specified barcode bitmap which is given by a generic byte array with the order RGB24.
Result Decode(byte[] rawRGB, int width, int height, RGBLuminanceSource.BitmapFormat format)
Parameters
rawRGB
byte[]The image as RGB24 array.
width
intThe width.
height
intThe height.
format
RGBLuminanceSource.BitmapFormatThe format.
Returns
- Result
the result data or null
Decode(LuminanceSource)
Tries to decode a barcode within an image which is given by a luminance source. That method gives a chance to prepare a luminance source completely before calling the time consuming decoding method. On the other hand there is a chance to create a luminance source which is independent from external resources (like Bitmap objects) and the decoding call can be made in a background thread.
Result Decode(LuminanceSource luminanceSource)
Parameters
luminanceSource
LuminanceSourceThe luminance source.
Returns
DecodeMultiple(byte[], int, int, BitmapFormat)
Decodes the specified barcode bitmap which is given by a generic byte array with the order RGB24.
Result[] DecodeMultiple(byte[] rawRGB, int width, int height, RGBLuminanceSource.BitmapFormat format)
Parameters
rawRGB
byte[]The image as RGB24 array.
width
intThe width.
height
intThe height.
format
RGBLuminanceSource.BitmapFormatThe format.
Returns
- Result[]
the result data or null
DecodeMultiple(LuminanceSource)
Tries to decode barcodes within an image which is given by a luminance source. That method gives a chance to prepare a luminance source completely before calling the time consuming decoding method. On the other hand there is a chance to create a luminance source which is independent from external resources (like Bitmap objects) and the decoding call can be made in a background thread.
Result[] DecodeMultiple(LuminanceSource luminanceSource)
Parameters
luminanceSource
LuminanceSourceThe luminance source.
Returns
- Result[]
Events
ResultFound
event is executed when a result was found via decode
event Action<Result> ResultFound
Event Type
ResultPointFound
event is executed when a result point was found
event Action<ResultPoint> ResultPointFound