C# Класс ZXing.PDF417.Internal.BoundingBox

A Bounding Box helper class
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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)

Описание методов

Create() публичный статический метод

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.
Результат BoundingBox

Create() публичный статический метод

Creates the specified box.
public static Create ( BoundingBox box ) : BoundingBox
box BoundingBox The box.
Результат BoundingBox

addMissingRows() публичный метод

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.
Результат BoundingBox