Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ZXPDF417.h 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright 2006 Jeremias Maerki in part, and ZXing Authors in part
  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. #import "ZXEncodeHints.h"
  17. @class ZXPDF417BarcodeMatrix, ZXIntArray;
  18. /**
  19. * Top-level class for the logic part of the PDF417 implementation.
  20. */
  21. @interface ZXPDF417 : NSObject
  22. @property (nonatomic, strong, readonly) ZXPDF417BarcodeMatrix *barcodeMatrix;
  23. @property (nonatomic, assign) BOOL compact;
  24. @property (nonatomic, assign) ZXPDF417Compaction compaction;
  25. @property (nonatomic, assign) NSStringEncoding encoding;
  26. - (id)initWithCompact:(BOOL)compact;
  27. /**
  28. * Generates the barcode logic.
  29. *
  30. * @param msg the message to encode
  31. */
  32. - (BOOL)generateBarcodeLogic:(NSString *)msg errorCorrectionLevel:(int)errorCorrectionLevel error:(NSError **)error;
  33. /**
  34. * Determine optimal nr of columns and rows for the specified number of
  35. * codewords.
  36. *
  37. * @param sourceCodeWords number of code words
  38. * @param errorCorrectionCodeWords number of error correction code words
  39. * @return dimension object containing cols as width and rows as height
  40. */
  41. - (ZXIntArray *)determineDimensions:(int)sourceCodeWords errorCorrectionCodeWords:(int)errorCorrectionCodeWords error:(NSError **)error;
  42. /**
  43. * Sets max/min row/col values
  44. */
  45. - (void)setDimensionsWithMaxCols:(int)maxCols minCols:(int)minCols maxRows:(int)maxRows minRows:(int)minRows;
  46. @end