C# 클래스 ZXing.Common.BitMatrix

파일 보기 프로젝트 열기: Redth/ZXing.Net.Mobile 1 사용 예제들

공개 메소드들

메소드 설명
BitMatrix ( int dimension ) : System
BitMatrix ( int width, int height ) : System
Clone ( ) : object

Clones this instance.

Equals ( object obj ) : bool

Determines whether the specified System.Object is equal to this instance.

GetHashCode ( ) : int

Returns a hash code for this instance.

ToString ( ) : String

Returns a System.String that represents this instance.

ToString ( String setString, String unsetString ) : String

Returns a System.String that represents this instance.

ToString ( String setString, String unsetString, String lineSeparator ) : String

Returns a System.String that represents this instance.

clear ( ) : void

Clears all bits (sets to false).

flip ( int x, int y ) : void

Flips the given bit.

flipWhen ( Func shouldBeFlipped ) : void

flip all of the bits, if shouldBeFlipped is true for the coordinates

getBottomRightOnBit ( ) : int[]
getEnclosingRectangle ( ) : int[]

This is useful in detecting the enclosing rectangle of a 'pure' barcode.

getRow ( int y, BitArray row ) : BitArray

A fast method to retrieve one row of data from the matrix as a BitArray.

getTopLeftOnBit ( ) : int[]

This is useful in detecting a corner of a 'pure' barcode.

parse ( String stringRepresentation, String setString, String unsetString ) : BitMatrix
rotate180 ( ) : void

Modifies this {@code BitMatrix} to represent the same but rotated 180 degrees

setRegion ( int left, int top, int width, int height ) : void

Sets a square region of the bit matrix to true.

setRow ( int y, BitArray row ) : void

Sets the row.

this ( int x, int y ) : bool

Gets the requested bit, where true means black.

xor ( BitMatrix mask ) : void

Exclusive-or (XOR): Flip the bit in this {@code BitMatrix} if the corresponding mask bit is set.

비공개 메소드들

메소드 설명
BitMatrix ( int width, int height, int bits ) : System
BitMatrix ( int width, int height, int rowSize, int bits ) : System
buildToString ( String setString, String unsetString, String lineSeparator ) : String

메소드 상세

BitMatrix() 공개 메소드

public BitMatrix ( int dimension ) : System
dimension int
리턴 System

BitMatrix() 공개 메소드

public BitMatrix ( int width, int height ) : System
width int
height int
리턴 System

Clone() 공개 메소드

Clones this instance.
public Clone ( ) : object
리턴 object

Equals() 공개 메소드

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
리턴 bool

GetHashCode() 공개 메소드

Returns a hash code for this instance.
public GetHashCode ( ) : int
리턴 int

ToString() 공개 메소드

Returns a System.String that represents this instance.
public ToString ( ) : String
리턴 String

ToString() 공개 메소드

Returns a System.String that represents this instance.
public ToString ( String setString, String unsetString ) : String
setString String The set string.
unsetString String The unset string.
리턴 String

ToString() 공개 메소드

Returns a System.String that represents this instance.
public ToString ( String setString, String unsetString, String lineSeparator ) : String
setString String The set string.
unsetString String The unset string.
lineSeparator String The line separator.
리턴 String

clear() 공개 메소드

Clears all bits (sets to false).
public clear ( ) : void
리턴 void

flip() 공개 메소드

Flips the given bit.

public flip ( int x, int y ) : void
x int The horizontal component (i.e. which column)
y int The vertical component (i.e. which row)
리턴 void

flipWhen() 공개 메소드

flip all of the bits, if shouldBeFlipped is true for the coordinates
public flipWhen ( Func shouldBeFlipped ) : void
shouldBeFlipped Func should return true, if the bit at a given coordinate should be flipped
리턴 void

getBottomRightOnBit() 공개 메소드

public getBottomRightOnBit ( ) : int[]
리턴 int[]

getEnclosingRectangle() 공개 메소드

This is useful in detecting the enclosing rectangle of a 'pure' barcode.
public getEnclosingRectangle ( ) : int[]
리턴 int[]

getRow() 공개 메소드

A fast method to retrieve one row of data from the matrix as a BitArray.
public getRow ( int y, BitArray row ) : BitArray
y int The row to retrieve ///
row BitArray An optional caller-allocated BitArray, will be allocated if null or too small ///
리턴 BitArray

getTopLeftOnBit() 공개 메소드

This is useful in detecting a corner of a 'pure' barcode.
public getTopLeftOnBit ( ) : int[]
리턴 int[]

parse() 공개 정적인 메소드

public static parse ( String stringRepresentation, String setString, String unsetString ) : BitMatrix
stringRepresentation String
setString String
unsetString String
리턴 BitMatrix

rotate180() 공개 메소드

Modifies this {@code BitMatrix} to represent the same but rotated 180 degrees
public rotate180 ( ) : void
리턴 void

setRegion() 공개 메소드

Sets a square region of the bit matrix to true.

public setRegion ( int left, int top, int width, int height ) : void
left int The horizontal position to begin at (inclusive) ///
top int The vertical position to begin at (inclusive) ///
width int The width of the region ///
height int The height of the region ///
리턴 void

setRow() 공개 메소드

Sets the row.
public setRow ( int y, BitArray row ) : void
y int row to set
row BitArray {@link BitArray} to copy from
리턴 void

this() 공개 메소드

Gets the requested bit, where true means black.

public this ( int x, int y ) : bool
x int The horizontal component (i.e. which column) ///
y int The vertical component (i.e. which row) ///
리턴 bool

xor() 공개 메소드

Exclusive-or (XOR): Flip the bit in this {@code BitMatrix} if the corresponding mask bit is set.
public xor ( BitMatrix mask ) : void
mask BitMatrix The mask.
리턴 void