QuadDrawingItem
The QuadDrawingItem class is a subclass of DrawingItem. It represents a drawing item that draws quadrilaterals on the view.
Definition
Assembly: package com.dynamsoft.dce
class QuadDrawingItem extends DrawingItem
Methods
| Method | Description |
|---|---|
getQuad |
Get the quad information of the QuadDrawingItem. |
getMediaType |
Get the media type of the DrawingItem. |
QuadDrawingItem |
Create an instance of QuadDrawingItem. |
QuadDrawingItem(coordinateBase) |
Create an instance of QuadDrawingItem. |
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. |
getQuad
Get the quad information of the QuadDrawingItem.
com.dynamsoft.core.Quadrilateral getQuad(){}
Return Value
A Quadrilateral object that stores the coodrinates of the QuadDrawingItem.
getMediaType
Get the media type of the DrawingItem.
EnumDrawingItemMeidaType getMediaType;
QuadDrawingItem(quad)
Create an instance of QuadDrawingItem.
QuadDrawingItem(com.dynamsoft.core.Quadrilateral quad){}
Parameters
quad: A com.dynamsoft.core.Quadrilateral object that stores the quad coordinates information.
Return Value
An instance of QuadDrawingItem.
QuadDrawingItem(quad,coordinateBase)
Create an instance of QuadDrawingItem.
QuadDrawingItem(com.dynamsoft.core.Quadrilateral quad, EnumCoordinateBase coordinateBase){}
Parameters
quad: A com.dynamsoft.core.Quadrilateral object that stores the quad coordinates information.
coordinateBase: The coordinate base of the DrawingItem.
Return Value
An instance of QuadDrawingItem.