Table of Contents

Class DetectionResultColumn

Namespace
ZXing.PDF417.Internal
Assembly
zxing.dll

Represents a Column in the Detection Result

public class DetectionResultColumn
Inheritance
DetectionResultColumn
Derived
Inherited Members

Constructors

DetectionResultColumn(BoundingBox)

Initializes a new instance of the DetectionResultColumn class.

public DetectionResultColumn(BoundingBox box)

Parameters

box BoundingBox

The Bounding Box around the column (in the BitMatrix)

Properties

Box

The Bounding Box around the column (in the BitMatrix)

public BoundingBox Box { get; }

Property Value

BoundingBox

The box.

Codewords

The Codewords the Box encodes for, offset by the Box minY. Remember to Access this ONLY through GetCodeword(imageRow) if you're accessing it in that manner.

public Codeword[] Codewords { get; set; }

Property Value

Codeword[]

The codewords.

Methods

IndexForRow(int)

Converts the Image's Row to the index in the Codewords array

public int IndexForRow(int imageRow)

Parameters

imageRow int

Image row.

Returns

int

The Codeword Index.

RowForIndex(int)

Converts the Codeword array index into a Row in the Image (BitMatrix)

public int RowForIndex(int codewordIndex)

Parameters

codewordIndex int

Codeword index.

Returns

int

The Image Row.

ToString()

Returns a string that represents the current DetectionResultColumn.

public override string ToString()

Returns

string

A string that represents the current DetectionResultColumn.

getCodeword(int)

Gets the codeword for a given row

public Codeword getCodeword(int imageRow)

Parameters

imageRow int

Image row.

Returns

Codeword

The codeword.

getCodewordNearby(int)

Gets the codeword closest to the specified row in the image

public Codeword getCodewordNearby(int imageRow)

Parameters

imageRow int

Image row.

Returns

Codeword

setCodeword(int, Codeword)

Sets the codeword for an image row

public void setCodeword(int imageRow, Codeword codeword)

Parameters

imageRow int

Image row.

codeword Codeword

Codeword.