ZXIWriterOptions.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Copyright 2023 KURZ Digital Solutions GmbH
  2. //
  3. // SPDX-License-Identifier: Apache-2.0
  4. #import <Foundation/Foundation.h>
  5. #import "ZXIFormat.h"
  6. NS_ASSUME_NONNULL_BEGIN
  7. extern const int AZTEC_ERROR_CORRECTION_0;
  8. extern const int AZTEC_ERROR_CORRECTION_12;
  9. extern const int AZTEC_ERROR_CORRECTION_25;
  10. extern const int AZTEC_ERROR_CORRECTION_37;
  11. extern const int AZTEC_ERROR_CORRECTION_50;
  12. extern const int AZTEC_ERROR_CORRECTION_62;
  13. extern const int AZTEC_ERROR_CORRECTION_75;
  14. extern const int AZTEC_ERROR_CORRECTION_87;
  15. extern const int AZTEC_ERROR_CORRECTION_100;
  16. extern const int QR_ERROR_CORRECTION_LOW;
  17. extern const int QR_ERROR_CORRECTION_MEDIUM;
  18. extern const int QR_ERROR_CORRECTION_QUARTILE;
  19. extern const int QR_ERROR_CORRECTION_HIGH;
  20. extern const int PDF417_ERROR_CORRECTION_0;
  21. extern const int PDF417_ERROR_CORRECTION_1;
  22. extern const int PDF417_ERROR_CORRECTION_2;
  23. extern const int PDF417_ERROR_CORRECTION_3;
  24. extern const int PDF417_ERROR_CORRECTION_4;
  25. extern const int PDF417_ERROR_CORRECTION_5;
  26. extern const int PDF417_ERROR_CORRECTION_6;
  27. extern const int PDF417_ERROR_CORRECTION_7;
  28. extern const int PDF417_ERROR_CORRECTION_8;
  29. @interface ZXIWriterOptions : NSObject
  30. @property(nonatomic) ZXIFormat format;
  31. @property(nonatomic) int width;
  32. @property(nonatomic) int height;
  33. @property(nonatomic) int ecLevel;
  34. @property(nonatomic) int margin;
  35. - (instancetype)initWithFormat:(ZXIFormat)format;
  36. - (instancetype)initWithFormat:(ZXIFormat)format
  37. width:(int)width
  38. height:(int)height
  39. ecLevel:(int)ecLevel
  40. margin:(int)margin;
  41. @end
  42. NS_ASSUME_NONNULL_END