Resource Base
Table of contents

This documentation is deprecated. It applies only to legacy version 2.x of Capture Vision and must not be used for new development.

Please refer to the latest documentation and Migration Guide, which supersede this content.

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: DynamsoftCaptureVisionBundle.xcframework

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

strokeColor

Set/get the stroke color.

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

fillColor

Set/get the fill color.

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

textColor

Set/get the text color.

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

strokeWidth

Set/get the stroke width (in pixel).

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

font

Set/get the font.

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

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: