C# 클래스 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.
파일 보기 프로젝트 열기: henningms/zxing2.0-wp7 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

ByteMatrix() 공개 메소드

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

ToBitmap() 공개 메소드

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

ToString() 공개 메소드

public ToString ( ) : String
리턴 String

clear() 공개 메소드

public clear ( sbyte value_Renamed ) : void
value_Renamed sbyte
리턴 void

get_Renamed() 공개 메소드

public get_Renamed ( int x, int y ) : sbyte
x int
y int
리턴 sbyte

set_Renamed() 공개 메소드

public set_Renamed ( int x, int y, int value_Renamed ) : void
x int
y int
value_Renamed int
리턴 void

set_Renamed() 공개 메소드

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