C# Class ZXing.PDF417.Internal.BoundingBox

A Bounding Box helper class
Show file Open project: Redth/ZXing.Net.Mobile Class Usage Examples

Public Methods

Method Description
Create ( BitMatrix image, ResultPoint topLeft, ResultPoint bottomLeft, ResultPoint topRight, ResultPoint bottomRight ) : BoundingBox

Initializes a new instance of the ZXing.PDF417.Internal.BoundingBox class. returns null if the corner points don't match up correctly

Create ( BoundingBox box ) : BoundingBox

Creates the specified box.

addMissingRows ( int missingStartRows, int missingEndRows, bool isLeft ) : BoundingBox

Adds the missing rows.

Private Methods

Method Description
BoundingBox ( BitMatrix image, ResultPoint topLeft, ResultPoint bottomLeft, ResultPoint topRight, ResultPoint bottomRight ) : System

Initializes a new instance of the ZXing.PDF417.Internal.BoundingBox class. Will throw an exception if the corner points don't match up correctly

SetBottomRight ( ResultPoint bottomRight ) : void

If we adjust the width, set a new right corner coordinate and recalculate

calculateMinMaxValues ( ) : void

Calculates the minimum and maximum X & Y values based on the corner points.

merge ( BoundingBox leftBox, BoundingBox rightBox ) : BoundingBox

Merge two Bounding Boxes, getting the left corners of left, and the right corners of right (Images should be the same)

Method Details

Create() public static method

Initializes a new instance of the ZXing.PDF417.Internal.BoundingBox class. returns null if the corner points don't match up correctly
public static Create ( BitMatrix image, ResultPoint topLeft, ResultPoint bottomLeft, ResultPoint topRight, ResultPoint bottomRight ) : BoundingBox
image ZXing.Common.BitMatrix The image.
topLeft ResultPoint The top left.
bottomLeft ResultPoint The bottom left.
topRight ResultPoint The top right.
bottomRight ResultPoint The bottom right.
return BoundingBox

Create() public static method

Creates the specified box.
public static Create ( BoundingBox box ) : BoundingBox
box BoundingBox The box.
return BoundingBox

addMissingRows() public method

Adds the missing rows.
public addMissingRows ( int missingStartRows, int missingEndRows, bool isLeft ) : BoundingBox
missingStartRows int Missing start rows.
missingEndRows int Missing end rows.
isLeft bool If set to true is left.
return BoundingBox