C# Класс 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.
Показать файл Открыть проект Примеры использования класса

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

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

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

BinaryBitmap() публичный Метод

public BinaryBitmap ( Binarizer binarizer ) : System
binarizer Binarizer
Результат System

crop() публичный Метод

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

getBlackRow() публичный Метод

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. ///
Результат zxingwp7.common.BitArray

rotateCounterClockwise() публичный Метод

Returns a new object with rotated image data. Only callable if isRotateSupported() is true.
public rotateCounterClockwise ( ) : BinaryBitmap
Результат BinaryBitmap