Resource Base
Table of contents

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: package com.dynamsoft.dce

class DrawingStyle

Attributes

Method Description
getId Get the style ID.
setStrokeColor Set/get the stroke color.
getStrokeColor Set/get the stroke color.
setFillColor Set/get the fill color.
getFillColor Set/get the fill color.
setTextColor Set/get the text color.
getTextColor Set/get the text color.
setStrokeWidth Set/get the stroke width (in pixel).
getStrokeWidth Set/get the stroke width (in pixel).
setFontSize Set/get the font.
getFontSize Set/get the font.
setFontFamily Set/get the font.
getFontFamily Set/get the font.

getID

Get the style ID.

int getId(){}

setStrokeColor

Set/get the stroke color.

void setStrokeColor(int color){}

getStrokeColor

Set/get the stroke color.

int getStrokeColor(){}

setFillColor

Set/get the fill color.

void setFillColor(int color){}

getFillColor

Set/get the fill color.

int getFillColor(){}

setTextColor

Set/get the text color.

void setFillColor(int color){}

getTextColor

Set/get the text color.

int getTextColor(){}

setStrokeWidth

Set/get the stroke width (in pixel).

void setStrokeWidth(float width){}

getStrokeWidth

Set/get the stroke width (in pixel).

float getStrokeWidth(){}

setFontSize

Set/get the font.

void setFontSize(int size){}

getFontSize

Set/get the font.

int getFontSize(){}

setFontFamily

Set/get the font.

void setFontSize(int size){}

getFontFamily

Set/get the font.

String getFontFamily(){}

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • 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 +