@@ -6,7 +6,6 @@ keywords: DrawingStyle, CameraEnhancer, api reference, javascript, js
66needAutoGenerateSidebar : false
77noTitleIndex : true
88breadcrumbText : DrawingStyle
9- permalink : /programming/javascript/api-reference/interface/drawingstyle.html
109---
1110
1211# DrawingStyle
@@ -55,96 +54,6 @@ The mode of painting (e.g., "fill", "stroke" or "strokeAndFill"). If not specifi
5554
5655The stroke color and opacity in rgba format. If not specified, the default is "rgba(245, 236, 73, 1)".
5756
58- ## Built-in DrawingStyles
59-
60- The SDK comes with 8 default Drawing styles. Their style definitions are listed below
61-
62- ``` javascript
63- // DrawingStyle 1 (STYLE_BLUE_STROKE)
64- // Used by Dynamsoft Document Normalizer for DrawingItems in "default" state.
65- {
66- " id" : 1 ,
67- " lineWidth" : 4 ,
68- " fillStyle" : " rgba(73, 173, 245, 0.3)" ,
69- " strokeStyle" : " rgba(73, 173, 245, 1)" ,
70- " paintMode" : " stroke" ,
71- " fontFamily" : " consolas" ,
72- " fontSize" : 40
73- }
74- // DrawingStyle 2 (STYLE_GREEN_STROKE_FILL)
75- // Used by Dynamsoft Label Recognizer for DrawingItems in "default" state.
76- {
77- " id" : 2 ,
78- " lineWidth" : 2 ,
79- " fillStyle" : " rgba(73, 245, 73, 0.3)" ,
80- " strokeStyle" : " rgba(73, 245, 73, 0.9)" ,
81- " paintMode" : " strokeAndFill" ,
82- " fontFamily" : " consolas" ,
83- " fontSize" : 40
84- }
85- // DrawingStyle 3 (STYLE_ORANGE_STROKE_FILL)
86- // Used by Dynamsoft Barcode Reader for DrawingItems in "default" state.
87- {
88- " id" : 3 ,
89- " lineWidth" : 2 ,
90- " fillStyle" : " rgba(254, 180, 32, 0.3)" ,
91- " strokeStyle" : " rgba(254, 180, 32, 0.9)" ,
92- " paintMode" : " strokeAndFill" ,
93- " fontFamily" : " consolas" ,
94- " fontSize" : 40
95- }
96- // DrawingStyle 4 (STYLE_YELLOW_STROKE)
97- // Used by custom DrawingLayers for DrawingItems in "default" state.
98- {
99- " id" : 4 ,
100- " lineWidth" : 2 ,
101- " fillStyle" : " rgba(245, 236, 73, 0.3)" ,
102- " strokeStyle" : " rgba(245, 236, 73, 1)" ,
103- " paintMode" : " stroke" ,
104- " fontFamily" : " consolas" ,
105- " fontSize" : 40
106- }
107- // DrawingStyle 5 (STYLE_BLUE_STROKE_FILL)
108- // Used by Dynamsoft Document Normalizer for DrawingItems in "selected" state.
109- {
110- " id" : 5 ,
111- " lineWidth" : 4 ,
112- " fillStyle" : " rgba(73, 173, 245, 0.3)" ,
113- " strokeStyle" : " rgba(73, 173, 245, 1)" ,
114- " paintMode" : " strokeAndFill" ,
115- " fontFamily" : " consolas" ,
116- " fontSize" : 40
117- }
118- // DrawingStyle 6 (STYLE_GREEN_STROKE_FILL)
119- {
120- " id" : 6 ,
121- " lineWidth" : 2 ,
122- " fillStyle" : " rgba(73, 245, 73, 0.3)" ,
123- " strokeStyle" : " rgba(73, 245, 73, 0.9)" ,
124- " paintMode" : " strokeAndFill" ,
125- " fontFamily" : " consolas" ,
126- " fontSize" : 40
127- }
128- // DrawingStyle 7
129- // Used by Dynamsoft Barcode Reader for DrawingItems in "selected" state.
130- {
131- " id" : 7 ,
132- " lineWidth" : 2 ,
133- " fillStyle" : " rgba(254, 180, 32, 0.3)" ,
134- " strokeStyle" : " rgba(254, 180, 32, 1)" ,
135- " paintMode" : " strokeAndFill" ,
136- " fontFamily" : " consolas" ,
137- " fontSize" : 40
138- }
139- // DrawingStyle 8 (STYLE_YELLOW_STROKE_FILL)
140- // Used by custom DrawingLayers for DrawingItems in "selected" state.
141- {
142- " id" : 8 ,
143- " lineWidth" : 2 ,
144- " fillStyle" : " rgba(245, 236, 73, 0.3)" ,
145- " strokeStyle" : " rgba(245, 236, 73, 1)" ,
146- " paintMode" : " strokeAndFill" ,
147- " fontFamily" : " consolas" ,
148- " fontSize" : 40
149- }
150- ```
57+ ## Predefined DrawingStyles
58+
59+ The SDK comes with 12 default Drawing styles. Please refer to [ Predefined DrawingStyle] ( ../drawingstylemanager.md#predefined-drawingstyle-object ) .
0 commit comments