Here are the examples of the csharp api class ZXing.PDF417.Internal.PDF417ScanningDecoder.getNumberOfECCodeWords(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
View licenseprivate static bool adjustCodewordCount(DetectionResult detectionResult, BarcodeValue[][] barcodeMatrix) { var barcodeMatrix01 = barcodeMatrix[0][1]; int[] numberOfCodewords = barcodeMatrix01.getValue(); int calculatedNumberOfCodewords = detectionResult.ColumnCount* detectionResult.RowCount - getNumberOfECCodeWords(detectionResult.ErrorCorrectionLevel); if (numberOfCodewords.Length == 0) { if (calculatedNumberOfCodewords < 1 || calculatedNumberOfCodewords > PDF417Common.MAX_CODEWORDS_IN_BARCODE) { return false; } barcodeMatrix01.setValue(calculatedNumberOfCodewords); } else if (numberOfCodewords[0] != calculatedNumberOfCodewords) { // The calculated one is more reliable as it is derived from the row indicator columns barcodeMatrix01.setValue(calculatedNumberOfCodewords); } return true; }
0
2. Example
View licenseprivate static bool adjustCodewordCount(DetectionResult detectionResult, BarcodeValue[][] barcodeMatrix) { int[] numberOfCodewords = barcodeMatrix[0][1].getValue(); int calculatedNumberOfCodewords = detectionResult.ColumnCount* detectionResult.RowCount - getNumberOfECCodeWords(detectionResult.ErrorCorrectionLevel); if (numberOfCodewords.Length == 0) { if (calculatedNumberOfCodewords < 1 || calculatedNumberOfCodewords > PDF417Common.MAX_CODEWORDS_IN_BARCODE) { return false; } barcodeMatrix[0][1].setValue(calculatedNumberOfCodewords); } else if (numberOfCodewords[0] != calculatedNumberOfCodewords) { // The calculated one is more reliable as it is derived from the row indicator columns barcodeMatrix[0][1].setValue(calculatedNumberOfCodewords); } return true; }