Resource Base
Table of contents

RectDrawingItem

The RectDrawingItem class is a subclass of DrawingItem that represents a rectangular drawing item.

Definition

Assembly: package com.dynamsoft.dce

class RectDrawingItem extends DrawingItem

Methods

Method Description
getRect Get the rect information of the RectDrawingItem.
getMediaType Get the media type of the DrawingItem.
RectDrawingItem(rect) Create an instance of RectDrawingItem.
RectDrawingItem(rect,coordinateBase) Create an instance of RectDrawingItem.

Interited Methods

The following methods are inherited from the superclass DrawingItem.

Method Description
setDrawingStyleId Set the DrawingStyle of the DrawingItem. If a DrawingItem holds a drawing style ID, it will not use the default style of its layer.
getDrawingStyleId Get the DrawingStyle of the DrawingItem.
setState Set the state of the DrawingItem.
getState Get the state of the DrawingItem.
getCoordinateBase Get the coordinate base of the DrawingItem. The coordinate base is image by default.
getMediaType Get the media type of the DrawingItem.
addNote Add a note to the DrawingItem.
getNote Get the specified Note.
hasNote Check whether the specified Note exists.
updateNote Update the content of the specified Note.
deleteNote Remove the specified Note with the specified name.
getAllNotes Get all Notes of this DrawingItem.
clearNotes Remove all Notes of this DrawingItem.

getRect

Get the rect information of the RectDrawingItem.

android.graphics.Rect getRect(){}

getMediaType

Get the media type of the DrawingItem.

EnumDrawingItemMeidaType getMediaType;

RectDrawingItem(rect)

Create an instance of RectDrawingItem.

RectDrawingItem(android.graphics.Rect rect){}

Parameters

rect: A android.graphics.Rect object that stores the rect coordinates information.

Return Value

An instance of RectDrawingItem.

RectDrawingItem(rect,coordinateBase)

Create an instance of RectDrawingItem.

RectDrawingItem(android.graphics.Rect rect, EnumCoordinateBase coordinateBase){}

Parameters

rect: A android.graphics.Rect object that stores the rect coordinates information.
coordinateBase: The coordinate base of the DrawingItem.

Return Value

An instance of RectDrawingItem.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: