StampPreview.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // StampPreview.h
  3. // PDFReader
  4. //
  5. // Copyright © 2014-2022 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // The PDF Reader Sample applications are licensed with a modified BSD license.
  8. // Please see License for details. This notice may not be removed from this file.
  9. //
  10. #import <UIKit/UIKit.h>
  11. typedef enum
  12. {
  13. TextStampColorType_Black = 660,
  14. TextStampColorType_Red,
  15. TextStampColorType_Green,
  16. TextStampColorType_Blue,
  17. TextStampColorType_RedLeft,
  18. TextStampColorType_GreenLeft,
  19. TextStampColorType_BlueLeft,
  20. TextStampColorType_RedRight,
  21. TextStampColorType_GreenRight,
  22. TextStampColorType_BlueRight
  23. }TextStampColorType;
  24. @interface StampPreview : UIView {
  25. NSInteger _textStampStyle;
  26. BOOL _textStampHaveDate;
  27. BOOL _textStampHaveTime;
  28. double color[3];
  29. CGRect _stampBounds;
  30. float _scale;
  31. }
  32. @property(nonatomic,copy) NSString *textStampText;
  33. @property(nonatomic,copy) NSString *dateTime;
  34. @property(nonatomic,assign) NSInteger textStampStyle;
  35. @property(nonatomic,assign) BOOL textStampHaveDate;
  36. @property(nonatomic,assign) BOOL textStampHaveTime;
  37. @property(nonatomic,assign) CGFloat leftMargin;
  38. - (UIImage *)renderImage;
  39. @end