PTRubberStampManager
@interface PTRubberStampManager : NSObject<PTOverridable>
/**
* The light red color
*/
@property (nonatomic, class, strong, readonly) PTRubberStampColorModel *lightRed;
/**
* The dark red color
*/
@property (nonatomic, class, strong, readonly) PTRubberStampColorModel *darkRed;
/**
* The light green color
*/
@property (nonatomic, class, strong, readonly) PTRubberStampColorModel *lightGreen;
/**
* The light blue color
*/
@property (nonatomic, class, strong, readonly) PTRubberStampColorModel *lightBlue;
/**
* The yellow color
*/
@property (nonatomic, class, strong, readonly) PTRubberStampColorModel *yellow;
/**
* The purple color
*/
@property (nonatomic, class, strong, readonly) PTRubberStampColorModel *purple;
/**
* All the colors on rubber stamp in an array.
*/
@property (nonatomic, class, strong, readonly) NSArray<PTRubberStampColorModel*> *stampColors;
/**
* Used to determine the number of standard stamps.
*
* @return the number of standard stamps.
*/
-(NSUInteger)numberOfStandardStamps;
/**
* Used to determine the number of custom stamps.
*
* @return the number of custom stamps.
*/
-(NSUInteger)numberOfCustomStamps;
/**
* An array of standard rubber stamp appearances.
* This should be an array of `PTCustomStampOption`s
*/
@property (nonatomic, copy, nullable) NSArray<PTCustomStampOption*> *standardStampOptions;
/**
* An array of custom rubber stamp appearances.
* This should be an array of `PTCustomStampOption`s
*/
@property (nonatomic, copy, nullable) NSArray<PTCustomStampOption*> *customStampOptions;
/**
*
* Saves a custom stamp created.
*
* @param stamp custom stamp created.
*
*/
-(void) saveCustomStampOption:(PTCustomStampOption *)stamp;
/**
*
* Returns an image of the stamp with a given `PTCustomStampOption` appearance.
*
* @param height The desired height of the output image.
*
* @param width The desired width of the output image.
*
* @param stampOption A `PTCustomStampOption` appearance object.
*
* @return A rasterized copy of the signature.
*
*/
+(UIImage*)getBitMapForStampWithHeight:(double)height width:(double)width option:(PTCustomStampOption*)stampOption;
@end
Undocumented
-
The light red color
Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTRubberStampColorModel *_Nonnull lightRed;
Swift
class var lightRed: PTRubberStampColorModel { get }
-
The dark red color
Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTRubberStampColorModel *_Nonnull darkRed;
Swift
class var darkRed: PTRubberStampColorModel { get }
-
The light green color
Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTRubberStampColorModel *_Nonnull lightGreen;
Swift
class var lightGreen: PTRubberStampColorModel { get }
-
The light blue color
Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTRubberStampColorModel *_Nonnull lightBlue;
Swift
class var lightBlue: PTRubberStampColorModel { get }
-
The yellow color
Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTRubberStampColorModel *_Nonnull yellow;
Swift
class var yellow: PTRubberStampColorModel { get }
-
The purple color
Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTRubberStampColorModel *_Nonnull purple;
Swift
class var purple: PTRubberStampColorModel { get }
-
All the colors on rubber stamp in an array.
Declaration
Objective-C
@property (class, nonatomic, strong, readonly) NSArray<PTRubberStampColorModel *> *_Nonnull stampColors;
Swift
class var stampColors: [PTRubberStampColorModel] { get }
-
Used to determine the number of standard stamps.
Declaration
Objective-C
- (NSUInteger)numberOfStandardStamps;
Swift
func numberOfStandardStamps() -> UInt
Return Value
the number of standard stamps.
-
Used to determine the number of custom stamps.
Declaration
Objective-C
- (NSUInteger)numberOfCustomStamps;
Swift
func numberOfCustomStamps() -> UInt
Return Value
the number of custom stamps.
-
An array of standard rubber stamp appearances. This should be an array of
PTCustomStampOption
sDeclaration
Objective-C
@property (nonatomic, copy, nullable) NSArray<PTCustomStampOption *> *standardStampOptions;
Swift
var standardStampOptions: [PTCustomStampOption]? { get set }
-
An array of custom rubber stamp appearances. This should be an array of
PTCustomStampOption
sDeclaration
Objective-C
@property (nonatomic, copy, nullable) NSArray<PTCustomStampOption *> *customStampOptions;
Swift
var customStampOptions: [PTCustomStampOption]? { get set }
-
Saves a custom stamp created.
Declaration
Objective-C
- (void)saveCustomStampOption:(nonnull PTCustomStampOption *)stamp;
Swift
func saveCustomStampOption(_ stamp: PTCustomStampOption)
Parameters
stamp
custom stamp created.
-
Returns an image of the stamp with a given
PTCustomStampOption
appearance.Declaration
Objective-C
+ (nonnull UIImage *)getBitMapForStampWithHeight:(double)height width:(double)width option:(nonnull PTCustomStampOption *) stampOption;
Swift
class func getBitMapForStamp(withHeight height: Double, width: Double, option stampOption: PTCustomStampOption) -> UIImage
Parameters
height
The desired height of the output image.
width
The desired width of the output image.
stampOption
A
PTCustomStampOption
appearance object.Return Value
A rasterized copy of the signature.