ZXing.PDF417.Internal.DetectionResultRowIndicatorColumn.adjustIncompleteIndicatorColumnRowNumbers(BarcodeMetadata)

Here are the examples of the csharp api class ZXing.PDF417.Internal.DetectionResultRowIndicatorColumn.adjustIncompleteIndicatorColumnRowNumbers(BarcodeMetadata) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

View license
public int[] getRowHeights()
      {
         BarcodeMetadata barcodeMetadata = getBarcodeMetadata();
         if (barcodeMetadata == null)
         {
            return null;
         }
         adjustIncompleteIndicatorColumnRowNumbers(barcodeMetadata);
         int[] result = new int[barcodeMetadata.RowCount];
         foreach (var codeword in Codewords)
         {
            if (codeword != null)
            {
               int rowNumber = codeword.RowNumber;
               if (rowNumber >= result.Length)
               {
                  // We have more rows than the barcode metadata allows for, ignore them.
                  continue;
               }
               result[rowNumber]++;
            } // else throw exception? (or return null)
         }
         return result;
      }

2. Example

View license
public int[] getRowHeights()
      {
         BarcodeMetadata barcodeMetadata = getBarcodeMetadata();
         if (barcodeMetadata == null)
         {
            return null;
         }
         adjustIncompleteIndicatorColumnRowNumbers(barcodeMetadata);
         int[] result = new int[barcodeMetadata.RowCount];
         foreach (var codeword in Codewords)
         {
            if (codeword != null)
            {
               int rowNumber = codeword.RowNumber;
               if (rowNumber >= result.Length)
               {
                  return null;
               }
               result[rowNumber]++;
            } // else throw exception? (or return null)
         }
         return result;
      }