PTRubberStampManager

@interface PTRubberStampManager : NSObject<PTOverridable>

/**
 * The default light red gradient start color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightRedStartColor;

/**
 * The default light red gradient end color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightRedEndColor;

/**
 * The default light red text color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightRedTextColor;

/**
 * The default light red border color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightRedBorderColor;

/**
 * The default dark red gradient start color
 */
@property (nonatomic, class, strong, readonly) UIColor *darkRedStartColor;

/**
 * The default dark red gradient end color
 */
@property (nonatomic, class, strong, readonly) UIColor *darkRedEndColor;

/**
 * The default dark red text color
 */
@property (nonatomic, class, strong, readonly) UIColor *darkRedTextColor;

/**
 * The default dark red border color
 */
@property (nonatomic, class, strong, readonly) UIColor *darkRedBorderColor;

/**
 * The default light green gradient start color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightGreenStartColor;

/**
 * The default light green gradient end color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightGreenEndColor;

/**
 * The default light green gradient text color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightGreenTextColor;

/**
 * The default light green border color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightGreenBorderColor;

/**
 * The default light blue gradient start color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightBlueStartColor;

/**
 * The default light blue gradient end color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightBlueEndColor;

/**
 * The default light blue text color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightBlueTextColor;

/**
 * The default light blue border color
 */
@property (nonatomic, class, strong, readonly) UIColor *lightBlueBorderColor;

/**
 * The default yellow gradient start color
 */
@property (nonatomic, class, strong, readonly) UIColor *yellowStartColor;

/**
 * The default yellow gradient end color
 */
@property (nonatomic, class, strong, readonly) UIColor *yellowEndColor;

/**
 * The default yellow text color
 */
@property (nonatomic, class, strong, readonly) UIColor *yellowTextColor;

/**
 * The default yellow border color
 */
@property (nonatomic, class, strong, readonly) UIColor *yellowBorderColor;

/**
 * The default purple gradient start color
 */
@property (nonatomic, class, strong, readonly) UIColor *purpleStartColor;

/**
 * The default purple gradient end color
 */
@property (nonatomic, class, strong, readonly) UIColor *purpleEndColor;

/**
 * The default purple text color
 */
@property (nonatomic, class, strong, readonly) UIColor *purpleTextColor;

/**
 * The default purple border color
 */
@property (nonatomic, class, strong, readonly) UIColor *purpleBorderColor;

/**
 * Used to determine the number of standard stamps.
 *
 * @return the number of standard stamps.
 */
-(NSUInteger)numberOfStandardStamps;

/**
 * An array of standard rubber stamp appearances.
 * This should be an array of `PTCustomStampOption`s
 */
@property (nonatomic, copy, nullable) NSArray<PTCustomStampOption*> *standardStampOptions;

/**
 *
 * 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 default light red gradient start color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightRedStartColor;

    Swift

    class var lightRedStartColor: UIColor { get }
  • The default light red gradient end color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightRedEndColor;

    Swift

    class var lightRedEndColor: UIColor { get }
  • The default light red text color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightRedTextColor;

    Swift

    class var lightRedTextColor: UIColor { get }
  • The default light red border color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightRedBorderColor;

    Swift

    class var lightRedBorderColor: UIColor { get }
  • The default dark red gradient start color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull darkRedStartColor;

    Swift

    class var darkRedStartColor: UIColor { get }
  • The default dark red gradient end color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class) UIColor *_Nonnull darkRedEndColor;

    Swift

    class var darkRedEndColor: UIColor { get }
  • The default dark red text color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull darkRedTextColor;

    Swift

    class var darkRedTextColor: UIColor { get }
  • The default dark red border color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull darkRedBorderColor;

    Swift

    class var darkRedBorderColor: UIColor { get }
  • The default light green gradient start color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightGreenStartColor;

    Swift

    class var lightGreenStartColor: UIColor { get }
  • The default light green gradient end color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightGreenEndColor;

    Swift

    class var lightGreenEndColor: UIColor { get }
  • The default light green gradient text color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightGreenTextColor;

    Swift

    class var lightGreenTextColor: UIColor { get }
  • The default light green border color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightGreenBorderColor;

    Swift

    class var lightGreenBorderColor: UIColor { get }
  • The default light blue gradient start color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightBlueStartColor;

    Swift

    class var lightBlueStartColor: UIColor { get }
  • The default light blue gradient end color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightBlueEndColor;

    Swift

    class var lightBlueEndColor: UIColor { get }
  • The default light blue text color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightBlueTextColor;

    Swift

    class var lightBlueTextColor: UIColor { get }
  • The default light blue border color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull lightBlueBorderColor;

    Swift

    class var lightBlueBorderColor: UIColor { get }
  • The default yellow gradient start color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull yellowStartColor;

    Swift

    class var yellowStartColor: UIColor { get }
  • The default yellow gradient end color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class) UIColor *_Nonnull yellowEndColor;

    Swift

    class var yellowEndColor: UIColor { get }
  • The default yellow text color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class) UIColor *_Nonnull yellowTextColor;

    Swift

    class var yellowTextColor: UIColor { get }
  • The default yellow border color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull yellowBorderColor;

    Swift

    class var yellowBorderColor: UIColor { get }
  • The default purple gradient start color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull purpleStartColor;

    Swift

    class var purpleStartColor: UIColor { get }
  • The default purple gradient end color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class) UIColor *_Nonnull purpleEndColor;

    Swift

    class var purpleEndColor: UIColor { get }
  • The default purple text color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class) UIColor *_Nonnull purpleTextColor;

    Swift

    class var purpleTextColor: UIColor { get }
  • The default purple border color

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, class)
        UIColor *_Nonnull purpleBorderColor;

    Swift

    class var purpleBorderColor: UIColor { 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.

  • An array of standard rubber stamp appearances. This should be an array of PTCustomStampOptions

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<PTCustomStampOption *> *standardStampOptions;

    Swift

    var standardStampOptions: [PTCustomStampOption]? { get set }
  • 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.