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;
 }
Example #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;
 }
Example #3
0
		public QRCodeDecoder()
		{
			numTryDecode = 0;
			results = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10));
			QRCodeDecoder.canvas = new DebugCanvasAdapter();
		}
Example #4
0
 public QRCodeDecoder()
 {
     numTryDecode         = 0;
     results              = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10));
     QRCodeDecoder.canvas = new DebugCanvasAdapter();
 }