# DrawingStyle

The `DrawingStyle` class represents the style attributes of the drawing items, including stroke color, fill color, text color, stroke width, and font.

## Definition

*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class DrawingStyle
```

## Attributes

| Method | Description |
|------- |-------------|
| [`getId`](#getid) | Get the style ID. |
| [`setStrokeColor`](#setstrokecolor) | Set/get the stroke color. |
| [`getStrokeColor`](#getstrokecolor) | Set/get the stroke color. |
| [`setFillColor`](#setfillcolor) | Set/get the fill color. |
| [`getFillColor`](#getfillcolor) | Set/get the fill color. |
| [`setTextColor`](#settextcolor) | Set/get the text color. |
| [`getTextColor`](#gettextcolor) | Set/get the text color. |
| [`setStrokeWidth`](#setstrokewidth) | Set/get the stroke width (in pixel). |
| [`getStrokeWidth`](#getstrokewidth) | Set/get the stroke width (in pixel). |
| [`setFontSize`](#setfontsize) | Set/get the font. |
| [`getFontSize`](#getfontsize) | Set/get the font. |
| [`setFontFamily`](#setfontfamily) | Set/get the font. |
| [`getFontFamily`](#getfontfamily) | Set/get the font. |

### getID

Get the style ID.

```java
int getId(){}
```

### setStrokeColor

Set/get the stroke color.

```java
void setStrokeColor(int color){}
```

### getStrokeColor

Set/get the stroke color.

```java
int getStrokeColor(){}
```

### setFillColor

Set/get the fill color.

```java
void setFillColor(int color){}
```

### getFillColor

Set/get the fill color.

```java
int getFillColor(){}
```

### setTextColor

Set/get the text color.

```java
void setFillColor(int color){}
```

### getTextColor

Set/get the text color.

```java
int getTextColor(){}
```

### setStrokeWidth

Set/get the stroke width (in pixel).

```java
void setStrokeWidth(float width){}
```

### getStrokeWidth

Set/get the stroke width (in pixel).

```java
float getStrokeWidth(){}
```

### setFontSize

Set/get the font.

```java
void setFontSize(int size){}
```

### getFontSize

Set/get the font.

```java
int getFontSize(){}
```

### setFontFamily

Set/get the font.

```java
void setFontSize(int size){}
```

### getFontFamily

Set/get the font.

```java
String getFontFamily(){}
```
