CStampPreview.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // CStampPreview.h
  3. // ComPDFKit_Tools
  4. //
  5. // Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  8. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  9. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  10. // This notice may not be removed from this file.
  11. //
  12. #import <UIKit/UIKit.h>
  13. NS_ASSUME_NONNULL_BEGIN
  14. typedef NS_ENUM(NSInteger, TextStampType) {
  15. TextStampTypeCenter = 0,
  16. TextStampTypeLeft,
  17. TextStampTypeRight,
  18. TextStampTypeNone
  19. };
  20. typedef NS_ENUM(NSInteger, TextStampColorType) {
  21. TextStampColorTypeBlack = 0,
  22. TextStampColorTypeRed,
  23. TextStampColorTypeGreen,
  24. TextStampColorTypeBlue
  25. };
  26. @interface CStampPreview : UIView {
  27. double color[3];
  28. }
  29. @property (nonatomic, assign) NSInteger textStampStyle;
  30. @property (nonatomic, assign) NSInteger textStampColorStyle;
  31. @property (nonatomic, assign) BOOL textStampHaveDate;
  32. @property (nonatomic, assign) BOOL textStampHaveTime;
  33. @property (nonatomic, strong) NSString *textStampText;
  34. @property (nonatomic, strong) NSString *dateTime;
  35. @property (nonatomic, assign) CGRect stampBounds;
  36. @property (nonatomic, assign) float scale;
  37. @property (nonatomic, assign) CGFloat leftMargin;
  38. @property (nonatomic, strong) UIColor *color;
  39. - (UIImage *)renderImage;
  40. @end
  41. NS_ASSUME_NONNULL_END