/// <summary>
 /// The choose versions.
 /// </summary>
 private void ChooseVersions()
 {
     // Automatic setting
     if ((this.version == null) || (this.mask == null))
     {
         this.type    = QrType.AlphaNumeric;
         this.version = new QrVersion(1, QrError.Q);
         this.mask    = new QrMask(2);
     }
 }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="QrCodeTable"/> class.
        /// </summary>
        /// <param name="type">
        /// The type.
        /// </param>
        public QrCodeTable(QrType type)
        {
            if (type == QrType.AlphaNumeric)
            {
                this.table = new char[45];

                this.table[0]  = '0';
                this.table[1]  = '1';
                this.table[2]  = '2';
                this.table[3]  = '3';
                this.table[4]  = '4';
                this.table[5]  = '5';
                this.table[6]  = '6';
                this.table[7]  = '7';
                this.table[8]  = '8';
                this.table[9]  = '9';
                this.table[10] = 'A';
                this.table[11] = 'B';
                this.table[12] = 'C';
                this.table[13] = 'D';
                this.table[14] = 'E';
                this.table[15] = 'F';
                this.table[16] = 'G';
                this.table[17] = 'H';
                this.table[18] = 'I';
                this.table[19] = 'J';
                this.table[20] = 'K';
                this.table[21] = 'L';
                this.table[22] = 'M';
                this.table[23] = 'N';
                this.table[24] = 'O';
                this.table[25] = 'P';
                this.table[26] = 'Q';
                this.table[27] = 'R';
                this.table[28] = 'S';
                this.table[29] = 'T';
                this.table[30] = 'U';
                this.table[31] = 'V';
                this.table[32] = 'W';
                this.table[33] = 'X';
                this.table[34] = 'Y';
                this.table[35] = 'Z';
                this.table[36] = ' ';
                this.table[37] = '$';
                this.table[38] = '%';
                this.table[39] = '*';
                this.table[40] = '+';
                this.table[41] = '-';
                this.table[42] = '.';
                this.table[43] = '/';
                this.table[44] = ':';
            }
        }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="QrCodeTable"/> class.
        /// </summary>
        /// <param name="type">
        /// The type.
        /// </param>
        public QrCodeTable(QrType type)
        {
            if (type == QrType.AlphaNumeric)
            {
                this.table = new char[45];

                this.table[0] = '0';
                this.table[1] = '1';
                this.table[2] = '2';
                this.table[3] = '3';
                this.table[4] = '4';
                this.table[5] = '5';
                this.table[6] = '6';
                this.table[7] = '7';
                this.table[8] = '8';
                this.table[9] = '9';
                this.table[10] = 'A';
                this.table[11] = 'B';
                this.table[12] = 'C';
                this.table[13] = 'D';
                this.table[14] = 'E';
                this.table[15] = 'F';
                this.table[16] = 'G';
                this.table[17] = 'H';
                this.table[18] = 'I';
                this.table[19] = 'J';
                this.table[20] = 'K';
                this.table[21] = 'L';
                this.table[22] = 'M';
                this.table[23] = 'N';
                this.table[24] = 'O';
                this.table[25] = 'P';
                this.table[26] = 'Q';
                this.table[27] = 'R';
                this.table[28] = 'S';
                this.table[29] = 'T';
                this.table[30] = 'U';
                this.table[31] = 'V';
                this.table[32] = 'W';
                this.table[33] = 'X';
                this.table[34] = 'Y';
                this.table[35] = 'Z';
                this.table[36] = ' ';
                this.table[37] = '$';
                this.table[38] = '%';
                this.table[39] = '*';
                this.table[40] = '+';
                this.table[41] = '-';
                this.table[42] = '.';
                this.table[43] = '/';
                this.table[44] = ':';
            }
        }
Exemple #4
0
 /// <summary>
 /// The choose versions.
 /// </summary>
 private void ChooseVersions()
 {
     // Automatic setting
     if ((this.version == null) || (this.mask == null))
     {
         this.type = QrType.AlphaNumeric;
         this.version = new QrVersion(1, QrError.Q);
         this.mask = new QrMask(2);
     }
 }
Exemple #5
0
 /// <summary>
 /// Advanced mode wrapper
 /// </summary>
 /// <param name="t">
 /// <c>QR</c> code type
 /// </param>
 /// <param name="v">
 /// <c>QR</c> code version
 /// </param>
 /// <param name="m">
 /// <c>QR</c> code mask
 /// </param>
 public void SetAdvancedMode(QrType t, QrVersion v, QrMask m)
 {
     this.type = t;
     this.version = v;
     this.mask = m;
 }
 /// <summary>
 /// Advanced mode wrapper
 /// </summary>
 /// <param name="t">
 /// <c>QR</c> code type
 /// </param>
 /// <param name="v">
 /// <c>QR</c> code version
 /// </param>
 /// <param name="m">
 /// <c>QR</c> code mask
 /// </param>
 public void SetAdvancedMode(QrType t, QrVersion v, QrMask m)
 {
     this.type    = t;
     this.version = v;
     this.mask    = m;
 }