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;
/**
* The standard `APPROVED` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* approvedStamp;
/**
* The standard `AS IS` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* asIsStamp;
/**
* The standard `COMPLETED` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* completedStamp;
/**
* The standard `CONFIDENTIAL` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* confidentialStamp;
/**
* The standard `DEPARTMENTAL` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* departmentalStamp;
/**
* The standard `DRAFT` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* draftStamp;
/**
* The standard `EXPERIMENTAL` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* experimentalStamp;
/**
* The standard `EXPIRED` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* expiredStamp;
/**
* The standard `APPROVED` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* finalStamp;
/**
* The standard `FOR COMMENT` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* forCommentStamp;
/**
* The standard `FOR PUBLIC RELEASE` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* forPublicReleaseStamp;
/**
* The standard `INFORMATION ONLY` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* informationOnlyStamp;
/**
* The standard `NOT APPROVED` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* notApprovedStamp;
/**
* The standard `NOT FOR PUBLIC RELEASE` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* notForPublicReleaseStamp;
/**
* The standard `PRELIMINARY RESULTS` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* preliminaryResultsStamp;
/**
* The standard `SOLD` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* soldStamp;
/**
* The standard `TOP SECRET` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* topSecretStamp;
/**
* The standard `VOID` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* voidStamp;
/**
* The standard `SIGN HERE` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* signHereStamp;
/**
* The standard `WITNESS` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* witnessStamp;
/**
* The standard `INITIAL HERE` stamp.
*/
@property (nonatomic, class, strong, readonly) PTCustomStampOption* initialHereStamp;
/**
*
* 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 }
-
The standard
APPROVED
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull approvedStamp;
Swift
class var approvedStamp: PTCustomStampOption { get }
-
The standard
AS IS
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull asIsStamp;
Swift
class var asIsStamp: PTCustomStampOption { get }
-
The standard
COMPLETED
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull completedStamp;
Swift
class var completedStamp: PTCustomStampOption { get }
-
The standard
CONFIDENTIAL
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull confidentialStamp;
Swift
class var confidentialStamp: PTCustomStampOption { get }
-
The standard
DEPARTMENTAL
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull departmentalStamp;
Swift
class var departmentalStamp: PTCustomStampOption { get }
-
The standard
DRAFT
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull draftStamp;
Swift
class var draftStamp: PTCustomStampOption { get }
-
The standard
EXPERIMENTAL
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull experimentalStamp;
Swift
class var experimentalStamp: PTCustomStampOption { get }
-
The standard
EXPIRED
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull expiredStamp;
Swift
class var expiredStamp: PTCustomStampOption { get }
-
The standard
APPROVED
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull finalStamp;
Swift
class var finalStamp: PTCustomStampOption { get }
-
The standard
FOR COMMENT
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull forCommentStamp;
Swift
class var forCommentStamp: PTCustomStampOption { get }
-
The standard
FOR PUBLIC RELEASE
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull forPublicReleaseStamp;
Swift
class var forPublicReleaseStamp: PTCustomStampOption { get }
-
The standard
INFORMATION ONLY
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull informationOnlyStamp;
Swift
class var informationOnlyStamp: PTCustomStampOption { get }
-
The standard
NOT APPROVED
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull notApprovedStamp;
Swift
class var notApprovedStamp: PTCustomStampOption { get }
-
The standard
NOT FOR PUBLIC RELEASE
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull notForPublicReleaseStamp;
Swift
class var notForPublicReleaseStamp: PTCustomStampOption { get }
-
The standard
PRELIMINARY RESULTS
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull preliminaryResultsStamp;
Swift
class var preliminaryResultsStamp: PTCustomStampOption { get }
-
The standard
SOLD
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull soldStamp;
Swift
class var soldStamp: PTCustomStampOption { get }
-
The standard
TOP SECRET
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull topSecretStamp;
Swift
class var topSecretStamp: PTCustomStampOption { get }
-
The standard
VOID
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull voidStamp;
Swift
class var voidStamp: PTCustomStampOption { get }
-
The standard
SIGN HERE
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull signHereStamp;
Swift
class var signHereStamp: PTCustomStampOption { get }
-
The standard
WITNESS
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull witnessStamp;
Swift
class var witnessStamp: PTCustomStampOption { get }
-
The standard
INITIAL HERE
stamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull initialHereStamp;
Swift
class var initialHereStamp: PTCustomStampOption { get }
-
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.