Table of Contents

Interface IBarcodeReaderGeneric

Namespace
ZXing
Assembly
zxing.dll

Interface for a smart class to decode the barcode inside a bitmap object

public interface IBarcodeReaderGeneric
Extension Methods

Properties

Options

Specifies some options which influence the decoding process

DecodingOptions Options { get; set; }

Property Value

DecodingOptions

Methods

Decode(byte[], int, int, BitmapFormat)

Decodes the specified barcode bitmap which is given by a generic byte array.

Result Decode(byte[] rawRGB, int width, int height, RGBLuminanceSource.BitmapFormat format)

Parameters

rawRGB byte[]

The barcode bitmap.

width int

The width.

height int

The height.

format RGBLuminanceSource.BitmapFormat

The 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 LuminanceSource

The luminance source.

Returns

Result

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 barcode bitmap.

width int

The width.

height int

The height.

format RGBLuminanceSource.BitmapFormat

The 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 LuminanceSource

The luminance source.

Returns

Result[]

Events

ResultFound

event is executed when a result was found via decode

event Action<Result> ResultFound

Event Type

Action<Result>

ResultPointFound

event is executed when a result point was found

event Action<ResultPoint> ResultPointFound

Event Type

Action<ResultPoint>