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() -> UIntReturn Value
the number of standard stamps.
-
Used to determine the number of custom stamps.
Declaration
Objective-C
- (NSUInteger)numberOfCustomStamps;Swift
func numberOfCustomStamps() -> UIntReturn Value
the number of custom stamps.
-
An array of standard rubber stamp appearances. This should be an array of
PTCustomStampOptionsDeclaration
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
PTCustomStampOptionsDeclaration
Objective-C
@property (nonatomic, copy, nullable) NSArray<PTCustomStampOption *> *customStampOptions;Swift
var customStampOptions: [PTCustomStampOption]? { get set } -
The standard
APPROVEDstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull approvedStamp;Swift
class var approvedStamp: PTCustomStampOption { get } -
The standard
AS ISstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull asIsStamp;Swift
class var asIsStamp: PTCustomStampOption { get } -
The standard
COMPLETEDstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull completedStamp;Swift
class var completedStamp: PTCustomStampOption { get } -
The standard
CONFIDENTIALstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull confidentialStamp;Swift
class var confidentialStamp: PTCustomStampOption { get } -
The standard
DEPARTMENTALstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull departmentalStamp;Swift
class var departmentalStamp: PTCustomStampOption { get } -
The standard
DRAFTstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull draftStamp;Swift
class var draftStamp: PTCustomStampOption { get } -
The standard
EXPERIMENTALstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull experimentalStamp;Swift
class var experimentalStamp: PTCustomStampOption { get } -
The standard
EXPIREDstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull expiredStamp;Swift
class var expiredStamp: PTCustomStampOption { get } -
The standard
APPROVEDstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull finalStamp;Swift
class var finalStamp: PTCustomStampOption { get } -
The standard
FOR COMMENTstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull forCommentStamp;Swift
class var forCommentStamp: PTCustomStampOption { get } -
The standard
FOR PUBLIC RELEASEstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull forPublicReleaseStamp;Swift
class var forPublicReleaseStamp: PTCustomStampOption { get } -
The standard
INFORMATION ONLYstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull informationOnlyStamp;Swift
class var informationOnlyStamp: PTCustomStampOption { get } -
The standard
NOT APPROVEDstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull notApprovedStamp;Swift
class var notApprovedStamp: PTCustomStampOption { get } -
The standard
NOT FOR PUBLIC RELEASEstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull notForPublicReleaseStamp;Swift
class var notForPublicReleaseStamp: PTCustomStampOption { get } -
The standard
PRELIMINARY RESULTSstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull preliminaryResultsStamp;Swift
class var preliminaryResultsStamp: PTCustomStampOption { get } -
The standard
SOLDstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull soldStamp;Swift
class var soldStamp: PTCustomStampOption { get } -
The standard
TOP SECRETstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull topSecretStamp;Swift
class var topSecretStamp: PTCustomStampOption { get } -
The standard
VOIDstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull voidStamp;Swift
class var voidStamp: PTCustomStampOption { get } -
The standard
SIGN HEREstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull signHereStamp;Swift
class var signHereStamp: PTCustomStampOption { get } -
The standard
WITNESSstamp.Declaration
Objective-C
@property (class, nonatomic, strong, readonly) PTCustomStampOption *_Nonnull witnessStamp;Swift
class var witnessStamp: PTCustomStampOption { get } -
The standard
INITIAL HEREstamp.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
stampcustom stamp created.
-
Returns an image of the stamp with a given
PTCustomStampOptionappearance.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) -> UIImageParameters
heightThe desired height of the output image.
widthThe desired width of the output image.
stampOptionA
PTCustomStampOptionappearance object.Return Value
A rasterized copy of the signature.
PTRubberStampManager Class Reference