Skip to content

Latest commit

 

History

History
143 lines (118 loc) · 2.59 KB

File metadata and controls

143 lines (118 loc) · 2.59 KB
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

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 > >1. ```objc @interface DSDrawingStyle : NSObject ``` 2. ```swift 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 > >1. ```objc @property (assign, nonatomic, readonly) NSInteger styleId; ``` 2. ```swift var styleId: Int { get } ```

strokeColor

Set/get the stroke color.

>- Objective-C >- Swift > >1. ```objc @property (nonatomic, copy) UIColor *strokeColor; ``` 2. ```swift var strokeColor: UIColor? { get set } ```

fillColor

Set/get the fill color.

>- Objective-C >- Swift > >1. ```objc @property (nonatomic, copy) UIColor *fillColor; ``` 2. ```swift var fillColor: UIColor? { get set } ```

textColor

Set/get the text color.

>- Objective-C >- Swift > >1. ```objc @property (nonatomic, copy) UIColor *textColor; ``` 2. ```swift var textColor: UIColor? { get set } ```

strokeWidth

Set/get the stroke width (in pixel).

>- Objective-C >- Swift > >1. ```objc @property (assign, nonatomic) CGFloat strokeWidth; ``` 2. ```swift var strokeWidth: CGFloat { get set } ```

font

Set/get the font.

>- Objective-C >- Swift > >1. ```objc @property (nonatomic, copy) UIFont *font; ``` 2. ```swift var font: UIFont? { get set } ```