Thanks for downloading Dynamsoft Label Recognizer Package!
Your download will start shortly. If your download does not begin, click here to retry.
DrawingItem
DrawingItem
is the class for users to draw graphic items on the UI view.
@interface DrawingItem
Method Name | Description |
---|---|
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 . |
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()