AztecCode.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Copyright 2013 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 FastReport.Barcode.Aztec
  17. {
  18. /// <summary>
  19. /// Aztec 2D code representation
  20. /// </summary>
  21. /// <author>Rustam Abdullaev</author>
  22. internal sealed class AztecCode
  23. {
  24. private bool is_Compact;
  25. private int size;
  26. private int layers;
  27. private int codeWords;
  28. private BitMatrix matrix;
  29. /// <summary>
  30. /// Compact or full symbol indicator
  31. /// </summary>
  32. public bool isCompact
  33. {
  34. get { return is_Compact; }
  35. set { is_Compact = value; }
  36. }
  37. /// <summary>
  38. /// Size in pixels (width and height)
  39. /// </summary>
  40. public int Size
  41. {
  42. get { return size; }
  43. set { size = value; }
  44. }
  45. /// <summary>
  46. /// Number of levels
  47. /// </summary>
  48. public int Layers
  49. {
  50. get { return layers; }
  51. set { layers = value; }
  52. }
  53. /// <summary>
  54. /// Number of data codewords
  55. /// </summary>
  56. public int CodeWords
  57. {
  58. get { return codeWords; }
  59. set { codeWords = value; }
  60. }
  61. /// <summary>
  62. /// The symbol image
  63. /// </summary>
  64. public BitMatrix Matrix
  65. {
  66. get { return matrix; }
  67. set { matrix = value; }
  68. }
  69. }
  70. }