Resource Base
Table of contents

DrawingStyleManager

The DrawingStyleManager class is the manager of DrawingStyles in Dynamsoft Camera Enhancer.

Definition

Assembly: package com.dynamsoft.dce

class DrawingStyleManager

Methods

Method Description
getDrawingStyle Get the specified DrawingStyle.
createDrawingStyle Create an instance of the DrawingStyle and get the style ID.
getAllDrawingStyles Get all available DrawingStyles.

Constant Variables

Variable Type Description
STYLE_BLUE_STROKE int A preset DrawingStyle with blue stroke colour and no fill colour.
STYLE_GREEN_STROKE int A preset DrawingStyle with green stroke colour and no fill colour.
STYLE_ORANGE_STROKE int A preset DrawingStyle with orange stroke colour and no fill colour.
STYLE_YELLOW_STROKE int A preset DrawingStyle with yellow stroke colour and no fill colour.
STYLE_BLUE_STROKE_FILL int A preset DrawingStyle with blue stroke colour and fill colour.
STYLE_GREEN_STROKE_FILL int A preset DrawingStyle with green stroke colour and fill colour.
STYLE_ORANGE_STROKE_FILL int A preset DrawingStyle with orange stroke colour and fill colour.
STYLE_YELLOW_STROKE_FILL int A preset DrawingStyle with yellow stroke colour and fill colour.

getDrawingStyle

Get the specified DrawingStyle.

static DrawingStyle getDrawingStyle(int styleId){}

Parameters

styleId: Specify a style ID.

Return Value

The DrawingStyle with the specified ID.

createDrawingStyle

Create an instance of the DrawingStyle and get the style ID.

static int createDrawingStyle(int strokeColor, float strokeWidth, int fillColor, int textColor){}

Parameters

strokeColor: Set the stroke colour.
strokeWidth: Set the stroke width.
fillColor: Set the fill colour.
textColor: Set the text colour.

Return Value

The style ID of the created DrawingStyle.

getAllDrawingStyles

Get all available DrawingStyles.

static DrawingStyle[] getAllDrawingStyles(){}

Return Value

An array that contains all available DrawingStyles.

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.10
    • Version 4.2.1
    • 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 +