Thanks for downloading Dynamsoft Label Recognizer Package!
Your download will start shortly. If your download does not begin, click here to retry.
QuadDrawingItem
QuadDrawingItem
is a subclass of DrawingItem
. Dynamsoft Camera Enhancer will draw the QuadDrawingItem
on the UI if it is created and added to the DCECameraView
or DCEImageEditorView
.
@interface QuadDrawingItem (DrawingItem)
Method Name | Description |
---|---|
initWithQuad |
The constructor of QuadDrawingItem . Initialize the instance of QuadDrawingItem . |
quad |
The Quadrilateral property that indicates the position of the QuadDrawingItem . |
drawingStyleId |
Get the drawing style of the current DrawingItem . |
state |
Set the state of the current DrawingItem . |
getMediaType |
Get the media type of the current DrawingItem . |
initWithQuad
The constructor of QuadDrawingItem
. Initialize the instance of QuadDrawingItem
.
- (instancetype) initWithQuad:(Quadrilateral*)quad;
Parameters
quad
: A Quadrilateral
that includes the position of the QuadDrawingItem
.
Code Snippet
- Objective-C
- Swift
DrawingItem* drawingItem = [[QuadDrawingItem alloc] initWithQuad:quad];
let drawingItem = QuadDrawingItem.init(quad:quad)
quad
The Quadrilateral
property that indicates the position of the QuadDrawingItem
.
@property (assign, nonatomic, readonly) Quadrilateral* quad;
drawingStyleId
The property that identifies the ID of the DrawingStyle
.
@property (assign, nonatomic) NSInteger drawingStyleId;
state
The property that indicates the state of the DrawingItem
. View all available DrawingItem
states in EnumDrawingItemState
.
@property (assign, nonatomic) EnumDrawingItemState state;
getMediaType
Get the media type of the DrawingItem
.
- (EnumDrawingItemMediaType) getMediaType;
Return Value
The media type of the DrawingItem
.
Code Snippet
- Objective-C
- Swift
EnumDrawingItemMediaType mediaType = [drawingItem getMediaType];
let mediaType = drawingItem.getMediaType()