Frame
This page is for Frame
Class. Frame
parameters store the frame data.
class com.dynamsoft.dce.Frame
Method Name | Type |
---|---|
getData |
byte[] |
getWidth |
int |
getHeight |
int |
getStrides |
int[] |
getFormat |
int |
getFrameId |
int |
isFastFrame |
boolean |
getFastFrameId |
int |
getCropRect |
Rect |
getOrientation |
int |
getOriW |
int |
getOriH |
int |
getData
Get the frame data in byte array.
byte[] getData()
Return Value
The frame byte data.
getWidth
Get the frame width in pixels.
int getWidth()
Return Value
The pixel width of the frame.
getHeight
Get the frame height in pixels.
int getHeight()
Return Value
The pixel height of the frame.
getStrides
Get the frame strides.
int[] getStrides()
Return Value
The strides of the frame.
getFormat
Get the frame pixel format.
int getFormat()
Return Value
The format of the frame.
getFrameId
Get the frame ID.
int getFrameId()
Return Value
The ID of the frame.
isFastFrame
Check whether the fast mode is enabled.
boolean isFastFrame()
Return Value
Whether the frame is cropped.
getFastFrameId
Get the fast frame (cropped frame) ID.
int getFastFrameId()
Return Value
The ID of the fast frame (cropped frame).
getCropRect
Get the cropped Rect data (Width & height)
Rect getCropRect()
Return Value
The value of the cropped frame.
getOrientation
Get the orientation (of cropped frame).
int getOrientation()
Return Value
The orientation (of cropped frame).
Orientation of the frame | Value (int) |
---|---|
Vertical | 1 |
Horizontal | 2 |
getOriW
Get the original width of the cropped frame.
int getOriW()
Return Value
The pixel width of the cropped frame.
getOriH
Get the original width of the cropped frame.
int getOriH()
Return Value
The pixel height of the cropped frame.