ZXing.PDF417.Internal.DetectionResultColumn.getCodeword(int)

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

2 Examples 7

1. Example

Project: ZXing.Net
Source File: DetectionResultColumn.cs
View license
public Codeword getCodewordNearby(int imageRow)
      {
         Codeword codeword = getCodeword(imageRow);
         if (codeword != null)
         {
            return codeword;
         }
         for (int i = 1; i < MAX_NEARBY_DISTANCE; i++)
         {
            int nearImageRow = imageRowToCodewordIndex(imageRow) - i;
            if (nearImageRow >= 0)
            {
               codeword = Codewords[nearImageRow];
               if (codeword != null)
               {
                  return codeword;
               }
            }
            nearImageRow = imageRowToCodewordIndex(imageRow) + i;
            if (nearImageRow < Codewords.Length)
            {
               codeword = Codewords[nearImageRow];
               if (codeword != null)
               {
                  return codeword;
               }
            }
         }
         return null;
      }

2. Example

Project: zxing-core
Source File: DetectionResultColumn.cs
View license
public Codeword getCodewordNearby(int imageRow)
      {
         Codeword codeword = getCodeword(imageRow);
         if (codeword != null)
         {
            return codeword;
         }
         for (int i = 1; i < MAX_NEARBY_DISTANCE; i++)
         {
            int nearImageRow = imageRowToCodewordIndex(imageRow) - i;
            if (nearImageRow >= 0)
            {
               codeword = Codewords[nearImageRow];
               if (codeword != null)
               {
                  return codeword;
               }
            }
            nearImageRow = imageRowToCodewordIndex(imageRow) + i;
            if (nearImageRow < Codewords.Length)
            {
               codeword = Codewords[nearImageRow];
               if (codeword != null)
               {
                  return codeword;
               }
            }
         }
         return null;
      }