C# Class zxingwp7.common.ByteMatrix

A class which wraps a 2D array of bytes. The default usage is signed. If you want to use it as a unsigned container, it's up to you to do byteValue & 0xff at each location. JAVAPORT: The original code was a 2D array of ints, but since it only ever gets assigned -1, 0, and 1, I'm going to use less memory and go with bytes.
Exibir arquivo Open project: henningms/zxing2.0-wp7 Class Usage Examples

Public Methods

Method Description
ByteMatrix ( int width, int height ) : System
ToBitmap ( ) : System.Windows.Media.Imaging.WriteableBitmap

Converts this ByteMatrix to a black and white bitmap.

ToString ( ) : String
clear ( sbyte value_Renamed ) : void
get_Renamed ( int x, int y ) : sbyte
set_Renamed ( int x, int y, int value_Renamed ) : void
set_Renamed ( int x, int y, sbyte value_Renamed ) : void

Method Details

ByteMatrix() public method

public ByteMatrix ( int width, int height ) : System
width int
height int
return System

ToBitmap() public method

Converts this ByteMatrix to a black and white bitmap.
public ToBitmap ( ) : System.Windows.Media.Imaging.WriteableBitmap
return System.Windows.Media.Imaging.WriteableBitmap

ToString() public method

public ToString ( ) : String
return String

clear() public method

public clear ( sbyte value_Renamed ) : void
value_Renamed sbyte
return void

get_Renamed() public method

public get_Renamed ( int x, int y ) : sbyte
x int
y int
return sbyte

set_Renamed() public method

public set_Renamed ( int x, int y, int value_Renamed ) : void
x int
y int
value_Renamed int
return void

set_Renamed() public method

public set_Renamed ( int x, int y, sbyte value_Renamed ) : void
x int
y int
value_Renamed sbyte
return void