public QRCodeDataBlockReader(int[] blocks, int version, int numErrorCorrectionCode)
 {
     blockPointer = 0;
     bitPointer = 7;
     dataLength = 0;
     this.blocks = blocks;
     this.numErrorCorrectionCode = numErrorCorrectionCode;
     if (version <= 9)
         dataLengthMode = 0;
     else if (version >= 10 && version <= 26)
         dataLengthMode = 1;
     else if (version >= 27 && version <= 40)
         dataLengthMode = 2;
     canvas = QRCodeDecoder.Canvas;
 }
示例#2
0
 public QRCodeDataBlockReader(int[] blocks, int version, int numErrorCorrectionCode)
 {
     blockPointer = 0;
     bitPointer   = 7;
     dataLength   = 0;
     this.blocks  = blocks;
     this.numErrorCorrectionCode = numErrorCorrectionCode;
     if (version <= 9)
     {
         dataLengthMode = 0;
     }
     else if (version >= 10 && version <= 26)
     {
         dataLengthMode = 1;
     }
     else if (version >= 27 && version <= 40)
     {
         dataLengthMode = 2;
     }
     canvas = QRCodeDecoder.Canvas;
 }
示例#3
0
		public QRCodeDecoder()
		{
			numTryDecode = 0;
			results = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10));
			QRCodeDecoder.canvas = new DebugCanvasAdapter();
		}
示例#4
0
 public QRCodeDecoder()
 {
     numTryDecode         = 0;
     results              = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10));
     QRCodeDecoder.canvas = new DebugCanvasAdapter();
 }