Skip to content

TTMSFNCWXBarcodeDecoder

The TTMSFNCWXBarcodeDecoder component allows decoding multiple types of barcodes from images. It also supports decoding barcodes when connected to a TTMSFNCWXCamera. This component uses the quagga2 library.

Properties

Property name Description
BarcodeType Set the barcode type to read. By default bdtCode128 is selected.
Camera Assign a TTMSFNCWXCamera to this property to read barcode from the camera.

Methods

Property name Description
DecodeFromBase64(ABase64; ACallback = nil) Decode from a base64 encoded image. If ACallback is assigned it’s called after processing the image.
DecodeFromFile(AFileName; ACallback = nil) Decode from a file. Not available for WEB. If ACallback is assigned it’s called after processing the image.
DecodeFromImage(ABitmap; ACallback = nil) Decode from a TTMSFNCBitmap. If ACallback is assigned it’s called after processing the image.

Events

Property name Description
OnDecoded Event triggered each time the image is processed. Check the AFound Boolean parameter to see if the reading was successful. The AResult string parameter contains the decoded result.