You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

BarcodeFormat.cs 2.6 kB

10 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * Copyright 2007 ZXing authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. namespace ZXing
  17. {
  18. /// <summary>
  19. /// Enumerates barcode formats known to this package.
  20. /// </summary>
  21. /// <author>Sean Owen</author>
  22. [System.Flags]
  23. public enum BarcodeFormat
  24. {
  25. /// <summary>Aztec 2D barcode format.</summary>
  26. AZTEC = 1,
  27. /// <summary>CODABAR 1D format.</summary>
  28. CODABAR = 2,
  29. /// <summary>Code 39 1D format.</summary>
  30. CODE_39 = 4,
  31. /// <summary>Code 93 1D format.</summary>
  32. CODE_93 = 8,
  33. /// <summary>Code 128 1D format.</summary>
  34. CODE_128 = 16,
  35. /// <summary>Data Matrix 2D barcode format.</summary>
  36. DATA_MATRIX = 32,
  37. /// <summary>EAN-8 1D format.</summary>
  38. EAN_8 = 64,
  39. /// <summary>EAN-13 1D format.</summary>
  40. EAN_13 = 128,
  41. /// <summary>ITF (Interleaved Two of Five) 1D format.</summary>
  42. ITF = 256,
  43. /// <summary>MaxiCode 2D barcode format.</summary>
  44. MAXICODE = 512,
  45. /// <summary>PDF417 format.</summary>
  46. PDF_417 = 1024,
  47. /// <summary>QR Code 2D barcode format.</summary>
  48. QR_CODE = 2048,
  49. /// <summary>RSS 14</summary>
  50. RSS_14 = 4096,
  51. /// <summary>RSS EXPANDED</summary>
  52. RSS_EXPANDED = 8192,
  53. /// <summary>UPC-A 1D format.</summary>
  54. UPC_A = 16384,
  55. /// <summary>UPC-E 1D format.</summary>
  56. UPC_E = 32768,
  57. /// <summary>UPC/EAN extension format. Not a stand-alone format.</summary>
  58. UPC_EAN_EXTENSION = 65536,
  59. /// <summary>MSI</summary>
  60. MSI = 131072,
  61. /// <summary>Plessey</summary>
  62. PLESSEY = 262144,
  63. /// <summary>
  64. /// UPC_A | UPC_E | EAN_13 | EAN_8 | CODABAR | CODE_39 | CODE_93 | CODE_128 | ITF | RSS_14 | RSS_EXPANDED
  65. /// without MSI (to many false-positives)
  66. /// </summary>
  67. All_1D = UPC_A | UPC_E | EAN_13 | EAN_8 | CODABAR | CODE_39 | CODE_93 | CODE_128 | ITF | RSS_14 | RSS_EXPANDED
  68. }
  69. }