layout | title | description | keywords | needGenerateH3Content | needAutoGenerateSidebar | noTitleIndex |
---|---|---|---|---|---|---|
default-layout |
DSDrawingStyle - DynamsoftCameraEnhancer iOS Edition API Reference |
The class DSDrawingStyle of DynamsoftCameraEnhancer represents the style attributes of the drawing items, including stroke color, fill color, text color, stroke width, and font. |
drawing style, objective-c, swift |
true |
true |
true |
The DSDrawingStyle
class represents the style attributes of the drawing items, including stroke color, fill color, text color, stroke width, and font.
Assembly: DynamsoftCore.xcframework
>- Objective-C >- Swift > >1. ```objc @interface DSDrawingStyle : NSObject ``` 2. ```swift class DrawingStyle : NSObject ```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. |
Get the style ID.
>- Objective-C >- Swift > >1. ```objc @property (assign, nonatomic, readonly) NSInteger styleId; ``` 2. ```swift var styleId: Int { get } ```Set/get the stroke color.
>- Objective-C >- Swift > >1. ```objc @property (nonatomic, copy) UIColor *strokeColor; ``` 2. ```swift var strokeColor: UIColor? { get set } ```Set/get the fill color.
>- Objective-C >- Swift > >1. ```objc @property (nonatomic, copy) UIColor *fillColor; ``` 2. ```swift var fillColor: UIColor? { get set } ```Set/get the text color.
>- Objective-C >- Swift > >1. ```objc @property (nonatomic, copy) UIColor *textColor; ``` 2. ```swift var textColor: UIColor? { get set } ```Set/get the stroke width (in pixel).
>- Objective-C >- Swift > >1. ```objc @property (assign, nonatomic) CGFloat strokeWidth; ``` 2. ```swift var strokeWidth: CGFloat { get set } ```Set/get the font.
>- Objective-C >- Swift > >1. ```objc @property (nonatomic, copy) UIFont *font; ``` 2. ```swift var font: UIFont? { get set } ```