IMVBarcodeDecoderCallback Interface
The IMVBarcodeDecoderCallback interface contains callback methods that are called by the MV Barcode Decoder Filter to submit the decoded data to the controlling application.
Methods:
SetCode
Set decoded code string.
SetCodeDimension
Set code dimensions.
SetCodeRectangle
Set code rectangle.
SetCodeSubType
Set the subtype of the code.
SetCodeType
Set the type of the code.
SetDecodingTime
Set decoding time in milliseconds.
SetNumOfReedSolomons
Set the number of Reed-Solomon errors.
SetPatternQuality
Set the percentage of wrong pixels.
SetRejectionReason
Set rejection reason.
SetResult
Set result.
Header file: IMVBarcodeDecoder.h
Interface definition language file: IMVBarcodeDecoder.idl
Type Library: MVBarcodeDecoderStandard, MVBarcodeDecoderAdvanced
Interface ID: IID_IMVBarcodeDecoderCallback
Methods:
Method IMVBarcodeDecoderCallback::SetCode
Declaration: Sub SetCode(bstrCode As String)
Set code characters.
Parameter:
| bstrCode | The decoded data as string. |
HRESULT SetCode(STRING bstrCode);
Method IMVBarcodeDecoderCallback::SetCodeDimension
Declaration: Sub SetCodeDimension(iX As Long, iY As Long)
Set code dimensions. Only valid for 2D barcodes, Data Matrix or PDF 417.
Parameter:
| iX | Number of code columns. | |
| iY | Number of code rows. |
HRESULT SetCodeDimension(LONG iX, LONG iY);
Method IMVBarcodeDecoderCallback::SetCodeRectangle
Declaration: Sub SetCodeRectangle(iX1 As Long, iY1 As Long, iX2 As Long, iY2 As Long, iX3 As Long, iY3 As Long, iX4 As Long, iY4 As Long)
Set code rectangle.
Parameter:
| iX1 | X value for corner one. | |
| iY1 | Y value for corner one. | |
| iX2 | X value for corner two. | |
| iY2 | Y value for corner two. | |
| iX3 | X value for corner three. | |
| iY3 | Y value for corner three. | |
| iX4 | X value for corner four. | |
| iY4 | Y value for corner four. |
HRESULT SetCodeRectangle(LONG iX1, LONG iY1, LONG iX2, LONG iY2, LONG iX3, LONG iY3, LONG iX4, LONG iY4);
Method IMVBarcodeDecoderCallback::SetCodeSubType
Declaration: Sub SetCodeSubType(iSubType As Long)
Set the subtype of the code. Only valid for linear 1D Barcodes. See _MV_BARCODE_LINEAR_SUBTYPE for possible values.
Parameter:
| iSubType | Subtype of the decoded barcode. |
HRESULT SetCodeSubType(LONG iSubType);
Enumeration _MV_BARCODE_LINEAR_SUBTYPE
| Member name | Member value |
|---|---|
| MV_BARCODE_LINEAR_CODE_128 | 1 |
| MV_BARCODE_LINEAR_CODE_39 | 2 |
| MV_BARCODE_LINEAR_CODABAR | 3 |
| MV_BARCODE_LINEAR_INTERLEAVED_2_OF_5 | 4 |
| MV_BARCODE_LINEAR_EAN_13_UPC | 5 |
| MV_BARCODE_LINEAR_EAN_8 | 6 |
| MV_BARCODE_LINEAR_UPC_E | 7 |
Method IMVBarcodeDecoderCallback::SetCodeType
Declaration: Sub SetCodeType(iType As Long)
Set the type of the code. See _MV_BARCODE_TYPE for possible values.
Parameter:
| iType | Type of the decoded barcode. |
HRESULT SetCodeType(LONG iType);
Enumeration _MV_BARCODE_TYPE
| Member name | Member value |
|---|---|
| MV_BARCODE_DATA_MATRIX | 1 |
| MV_BARCODE_LINEAR | 2 |
| MV_BARCODE_PDF_417 | 4 |
Method IMVBarcodeDecoderCallback::SetDecodingTime
Declaration: Sub SetDecodingTime(iTime As Long)
Set the time that was needed to decode the barcode in milliseconds.
Parameter:
| iTime | Decode time in milliseconds |
HRESULT SetDecodingTime(LONG iTime);
Method IMVBarcodeDecoderCallback::SetNumOfReedSolomons
Declaration: Sub SetNumOfReedSolomons(iNumOfReedSolomons As Long)
Set the number of Reed-Solomon errors in the decoded barcode.
Parameter:
| iNumOfReedSolomons | Number of Reed-Solomon errors |
HRESULT SetNumOfReedSolomons(LONG iNumOfReedSolomons);
Method IMVBarcodeDecoderCallback::SetPatternQuality
Declaration: Sub SetPatternQuality(iQuality As Long)
Set the percentage of wrong pixels. Only valid for Data matrix barcodes.
Parameter:
| iQuality | Percent of wrong pixels 0-100% |
HRESULT SetPatternQuality(LONG iQuality);
Method IMVBarcodeDecoderCallback::SetRejectionReason
Declaration: Sub SetRejectionReason(iRejectionReason As Long)
Set rejection reason. !!! Obsolete !!!
Parameter:
| iRejectionReason | - |
HRESULT SetRejectionReason(LONG iRejectionReason);
Method IMVBarcodeDecoderCallback::SetResult
Declaration: Sub SetResult(bResult As Boolean)
Set result. !!! Obsolete !!!
Parameter:
| bResult | TRUE if the code was decoded successfully. |
HRESULT SetResult(BOOLEAN bResult);