Barcode Plugin for Xojo

BarcodeDecoder.DetectBarcode Method

Detects a barcode or QRCode from a given RawBitMap, offering to optimise on what kinds of codes it should detect, as detecting all types of codes is slower than just some types.

DetectBarcode(
   source as RawBitmap,
   type as DetectionType) as BarcodeDecoderResult

Parameters

source
The bitmap to detect barcode or QR code from.
type
The type of the detection to use, this can be any value from the BarcodeDecoder.DetectionType enum

Returns

BarcodeDecoderResult
A result of the type BarcodeDecoderResult

Remarks

The function will not return nil as result if no code was found but it will return a BarCodeResult class instance that can tell you if something was found or not.

See Also

BarcodeDecoder Class