C# Class zxingwp7.BinaryBitmap

This class is the core bitmap class used by ZXing to represent 1 bit data. Reader objects accept a BinaryBitmap and attempt to decode it.
ファイルを表示 Open project: henningms/zxing2.0-wp7 Class Usage Examples

Public Methods

Method Description
BinaryBitmap ( Binarizer binarizer ) : System
crop ( int left, int top, int width, int height ) : BinaryBitmap

Returns a new object with cropped image data. Implementations may keep a reference to the original data rather than a copy. Only callable if isCropSupported() is true.

getBlackRow ( int y, BitArray row ) : BitArray

Converts one row of luminance data to 1 bit data. May actually do the conversion, or return cached data. Callers should assume this method is expensive and call it as seldom as possible. This method is intended for decoding 1D barcodes and may choose to apply sharpening.

rotateCounterClockwise ( ) : BinaryBitmap

Returns a new object with rotated image data. Only callable if isRotateSupported() is true.

Method Details

BinaryBitmap() public method

public BinaryBitmap ( Binarizer binarizer ) : System
binarizer Binarizer
return System

crop() public method

Returns a new object with cropped image data. Implementations may keep a reference to the original data rather than a copy. Only callable if isCropSupported() is true.
public crop ( int left, int top, int width, int height ) : BinaryBitmap
left int The left coordinate, 0 <= left < getWidth(). ///
top int The top coordinate, 0 <= top <= getHeight(). ///
width int The width of the rectangle to crop. ///
height int The height of the rectangle to crop. ///
return BinaryBitmap

getBlackRow() public method

Converts one row of luminance data to 1 bit data. May actually do the conversion, or return cached data. Callers should assume this method is expensive and call it as seldom as possible. This method is intended for decoding 1D barcodes and may choose to apply sharpening.
public getBlackRow ( int y, BitArray row ) : BitArray
y int The row to fetch, 0 <= y < bitmap height. ///
row zxingwp7.common.BitArray An optional preallocated array. If null or too small, it will be ignored. /// If used, the Binarizer will call BitArray.clear(). Always use the returned object. ///
return zxingwp7.common.BitArray

rotateCounterClockwise() public method

Returns a new object with rotated image data. Only callable if isRotateSupported() is true.
public rotateCounterClockwise ( ) : BinaryBitmap
return BinaryBitmap