Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright 2012 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. @class ZXByteArray;
  17. @interface ZXPDF417BarcodeRow : NSObject
  18. @property (nonatomic, strong, readonly) ZXByteArray *row;
  19. /**
  20. * Creates a Barcode row of the width
  21. */
  22. + (ZXPDF417BarcodeRow *)barcodeRowWithWidth:(int)width;
  23. - (id)initWithWidth:(int)width;
  24. /**
  25. * Sets a specific location in the bar
  26. *
  27. * @param x The location in the bar
  28. * @param value Black if true, white if false;
  29. */
  30. - (void)setX:(int)x value:(int8_t)value;
  31. /**
  32. * Sets a specific location in the bar
  33. *
  34. * @param x The location in the bar
  35. * @param black Black if true, white if false;
  36. */
  37. - (void)setX:(int)x black:(BOOL)black;
  38. /**
  39. * @param black A boolean which is true if the bar black false if it is white
  40. * @param width How many spots wide the bar is.
  41. */
  42. - (void)addBar:(BOOL)black width:(int)width;
  43. /**
  44. * This function scales the row
  45. *
  46. * @param scale How much you want the image to be scaled, must be greater than or equal to 1.
  47. * @return the scaled row
  48. */
  49. - (ZXByteArray *)scaledRow:(int)scale;
  50. @end