PTImageStampAnnotationOptions
@interface PTImageStampAnnotationOptions : PTAnnotationOptions
An object that contains options for image stamp annotations.
-
Whether the annotation can be rotated. The default value is
YES
.Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isRotationEnabled) BOOL rotationEnabled;
Swift
var isRotationEnabled: Bool { get set }
-
Whether the annotation can be cropped. The default value is
YES
.Declaration
Objective-C
@property (nonatomic, getter=isCropEnabled) BOOL cropEnabled;
Swift
var isCropEnabled: Bool { get set }
-
Whether the annotation’s opacity can be changed. The default value is
NO
.Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isOpacityEnabled) BOOL opacityEnabled;
Swift
var isOpacityEnabled: Bool { get set }
-
Whether the image stamp can insert multiple images at once. The default value is
NO
.Declaration
Objective-C
@property (nonatomic) BOOL allowsMultipleInsertions;
Swift
var allowsMultipleInsertions: Bool { get set }
-
Max amount of images that can be selected from the photo library. The default value is 1.
Declaration
Objective-C
@property (nonatomic) NSUInteger librarySelectionLimit;
Swift
var librarySelectionLimit: UInt { get set }
-
An array of maximum allowed image stamp dimensions (in pixels) which can be selected by the user. Any images with dimensions larger than the selected size will be resized.
Declaration
Objective-C
@property (nonatomic, copy) NSArray<NSNumber *> *_Nonnull maxImageDimensions;
Swift
var maxImageDimensions: [NSNumber] { get set }