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 |
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. |
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.
Get the id of the drawing style.
public int getId();
Get the stroke color of the drawing style.
public int getStrokeColor();
Set the stroke color of the drawing style.
public void setStrokeColor(int color);
Get the fill color of the drawing style.
public int getFillColor();
Set the fill color of the drawing style.
public void setFillColor(int color);
Get the text color of the drawing style.
public int getTextColor();
Set the text color of the drawing style.
public void setTextColor(int color);
Get the stroke width of the drawing style.
public float getStrokeWidth();
Set the stroke width of the drawing style.
public void setStrokeWidth(float width);
Get the font size of the drawing style.
public int getFontSize();
Set the font size of the drawing style.
public void setFontSize(int size);
Get the font-Family of the drawing style.
public String getFontFamily();
Set the font-Family of the drawing style.
public void setFontFamily(String font);