Skip to content

TTMSFNCWXQRDecoder

The TTMSFNCWXQRDecoder component allows decoding QR codes from images. It also supports decoding QR codes when connected to a TTMSFNCWXCamera. This component uses the jsQR library.

Properties

Property name Description
Camera Assign a TTMSFNCWXCamera to this property to read QR codes 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.