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.
Afficher le fichier Open project: henningms/zxing2.0-wp7 Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public ByteMatrix ( int width, int height ) : System
width int
height int
Résultat System

ToBitmap() public méthode

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

ToString() public méthode

public ToString ( ) : String
Résultat String

clear() public méthode

public clear ( sbyte value_Renamed ) : void
value_Renamed sbyte
Résultat void

get_Renamed() public méthode

public get_Renamed ( int x, int y ) : sbyte
x int
y int
Résultat sbyte

set_Renamed() public méthode

public set_Renamed ( int x, int y, int value_Renamed ) : void
x int
y int
value_Renamed int
Résultat void

set_Renamed() public méthode

public set_Renamed ( int x, int y, sbyte value_Renamed ) : void
x int
y int
value_Renamed sbyte
Résultat void