TTMSFNCWXCustomBarcodeDecoder.DecodeFromImage Method
Decodes the barcode contained in an in-memory bitmap.
API unit family: TMSFNCWXBarcodeDecoder
Declaring type: TTMSFNCWXCustomBarcodeDecoder
Inherited from: TTMSFNCWXCustomBarcodeDecoderBase
Syntax
procedure DecodeFromImage(ABitmap: TTMSFNCBitmap; const ACallback: TTMSFNCWXCustomBarcodeDecodeCallBackEvent = nil);
Remarks
The bitmap is encoded to a base64 data stream and forwarded to DecodeFromBase64.
Parameters
| Name | Description |
|---|---|
ABitmap |
Bitmap whose pixels are scanned for a barcode. |
ACallback |
Optional callback invoked with the decode result; pass nil to rely on the OnDecoded event instead. |