ZXing.PDF417.Internal.BoundingBox.calculateMinMaxValues()

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

4 Examples 7

1. Example

Project: ZXing.Net
Source File: BoundingBox.cs
View license
public BoundingBox addMissingRows(int missingStartRows, int missingEndRows, bool isLeft)
      {
         ResultPoint newTopLeft = TopLeft;
         ResultPoint newBottomLeft = BottomLeft;
         ResultPoint newTopRight = TopRight;
         ResultPoint newBottomRight = BottomRight;

         if (missingStartRows > 0)
         {
            ResultPoint top = isLeft ? TopLeft : TopRight;
            int newMinY = (int) top.Y - missingStartRows;
            if (newMinY < 0)
            {
               newMinY = 0;
            }
            ResultPoint newTop = new ResultPoint(top.X, newMinY);
            if (isLeft)
            {
               newTopLeft = newTop;
            }
            else
            {
               newTopRight = newTop;
            }
         }

         if (missingEndRows > 0)
         {
            ResultPoint bottom = isLeft ? BottomLeft : BottomRight;
            int newMaxY = (int) bottom.Y + missingEndRows;
            if (newMaxY >= image.Height)
            {
               newMaxY = image.Height - 1;
            }
            ResultPoint newBottom = new ResultPoint(bottom.X, newMaxY);
            if (isLeft)
            {
               newBottomLeft = newBottom;
            }
            else
            {
               newBottomRight = newBottom;
            }
         }

         calculateMinMaxValues();
         return new BoundingBox(image, newTopLeft, newBottomLeft, newTopRight, newBottomRight);
      }

2. Example

Project: ZXing.Net
Source File: BoundingBox.cs
View license
internal void SetBottomRight(ResultPoint bottomRight)
      {
         this.BottomRight = bottomRight;
         calculateMinMaxValues();
      }

3. Example

Project: zxing-core
Source File: BoundingBox.cs
View license
public BoundingBox addMissingRows(int missingStartRows, int missingEndRows, bool isLeft)
      {
   /n ..... /n //View Source file for more details /n }

4. Example

Project: zxing-core
Source File: BoundingBox.cs
View license
internal void SetBottomRight(ResultPoint bottomRight)
      {
         this.BottomRight = bottomRight;
         calculateMinMaxValues();
      }