Resource Base
Table of contents

DrawingStyle Class

The class of DrawingStyle. It stores the detailed styles of the drawing item.

class com.dynamsoft.dce.DrawingStyle 
Method Description
DrawingStyle The constructor of the DrawingStyle.
getId Get the id of the drawing style.
getStrokeColor Get the stroke color of the drawing style.
setStrokeColor Set the stroke color of the drawing style.
getFillColor Get the fill color of the drawing style.
setFillColor Set the fill color of the drawing style.
getTextColor Get the text color of the drawing style.
setTextColor Set the text color of the drawing style.
getStrokeWidth Get the stroke width of the drawing style.
setStrokeWidth Set the stroke width of the drawing style.
getFontSize Get the font size of the drawing style.
setFontSize Set the font size of the drawing style.
getFontFamily Get the font-Family of the drawing style.
setFontFamily Set the font-Family of the drawing style.

 

DrawingStyle

The constructor of the DrawingStyle.

public DrawingStyle(int id, int strokeColor, float strokeWidth, int fillColor, int textColor, int fontSize, String fontFamily);

Remarks

Please use DrawingStyleManager.createDrawingStyle to create the drawing style.

 

getId

Get the id of the drawing style.

public int getId();

 

getStrokeColor

Get the stroke color of the drawing style.

public int getStrokeColor();

 

setStrokeColor

Set the stroke color of the drawing style.

public void setStrokeColor(int color);

 

getFillColor

Get the fill color of the drawing style.

public int getFillColor();

 

setFillColor

Set the fill color of the drawing style.

public void setFillColor(int color);

 

getTextColor

Get the text color of the drawing style.

public int getTextColor();

 

setTextColor

Set the text color of the drawing style.

public void setTextColor(int color);

 

getStrokeWidth

Get the stroke width of the drawing style.

public float getStrokeWidth();

 

setStrokeWidth

Set the stroke width of the drawing style.

public void setStrokeWidth(float width);

 

getFontSize

Get the font size of the drawing style.

public int getFontSize();

 

setFontSize

Set the font size of the drawing style.

public void setFontSize(int size);

 

getFontFamily

Get the font-Family of the drawing style.

public String getFontFamily();

 

setFontFamily

Set the font-Family of the drawing style.

public void setFontFamily(String font);

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

version 3.0.3

  • Latest version
  • Version 4.x
    • Version 4.2.0
    • Version 4.0.2
    • Version 4.0.1
    • Version 4.0.0
  • Version 3.x
    • Version 3.0.3
    • Version 3.0.2
    • Version 3.0.1
    • Version 3.0.0
  • Version 2.x
    • Version 2.3.21
    • Version 2.3.20
    • Version 2.3.12
    • Version 2.3.11
    • Version 2.3.10
    • Version 2.3.5
    • Version 2.3.4
    • Version 2.3.3
    • Version 2.3.2
    • Version 2.3.1
    • Version 2.3.0
    • Version 2.1.4
    • Version 2.1.3
    • Version 2.1.1
    • Version 2.0.0
Change +