DSDrawingStyle
The DSDrawingStyle
class represents the style attributes of the drawing items, including stroke color, fill color, text color, stroke width, and font.
Definition
Assembly: DynamsoftCore.xcframework
- Objective-C
- Swift
@interface DSDrawingStyle : NSObject
class DrawingStyle : NSObject
Attributes
Attributes | Type | Description |
---|---|---|
styleId |
NSInteger | Get the style ID. |
strokeColor |
UIColor * | Set/get the stroke color. |
fillColor |
UIColor * | Set/get the fill color. |
textColor |
UIColor * | Set/get the text color. |
strokeWidth |
CGFloat | Set/get the stroke width (in pixel). |
font |
UIFont * | Set/get the font. |
styleId
Get the style ID.
- Objective-C
- Swift
@property (assign, nonatomic, readonly) NSInteger styleId;
var styleId: Int { get }
strokeColor
Set/get the stroke color.
- Objective-C
- Swift
@property (nonatomic, copy) UIColor *strokeColor;
var strokeColor: UIColor? { get set }
fillColor
Set/get the fill color.
- Objective-C
- Swift
@property (nonatomic, copy) UIColor *fillColor;
var fillColor: UIColor? { get set }
textColor
Set/get the text color.
- Objective-C
- Swift
@property (nonatomic, copy) UIColor *textColor;
var textColor: UIColor? { get set }
strokeWidth
Set/get the stroke width (in pixel).
- Objective-C
- Swift
@property (assign, nonatomic) CGFloat strokeWidth;
var strokeWidth: CGFloat { get set }
font
Set/get the font.
- Objective-C
- Swift
@property (nonatomic, copy) UIFont *font;
var font: UIFont? { get set }