Skip to content

Latest commit

 

History

History
180 lines (118 loc) · 3.48 KB

File metadata and controls

180 lines (118 loc) · 3.48 KB
layout title description keywords needAutoGenerateSidebar noTitleIndex needGenerateH3Content breadcrumbText permalink
default-layout
Android DrawingStyle Class - Dynamsoft Camera Enhancer Documents
This is the documentation - Android DrawingStyle Class page of Dynamsoft Camera Enhancer.
Camera Enhancer, Android, DrawingStyle
true
true
true
Android DrawingStyle Class
/programming/android/auxiliary-api/drawingstyle-v3.0.3.html

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);