Resource Base
Table of contents

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.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

version 1.0.3

  • Latest version
  • Version 4.x
    • Version 4.2.0
    • Version 4.0.2
    • Version 4.0.1
    • Version 4.0.0
  • Version 3.x
    • Version 3.0.3
    • Version 3.0.2
    • Version 3.0.1
    • Version 3.0.0
  • Version 2.x
    • Version 2.3.21
    • Version 2.3.20
    • Version 2.3.12
    • Version 2.3.11
    • Version 2.3.10
    • Version 2.3.5
    • Version 2.3.4
    • Version 2.3.3
    • Version 2.3.2
    • Version 2.3.1
    • Version 2.3.0
    • Version 2.1.4
    • Version 2.1.3
    • Version 2.1.1
    • Version 2.0.0
Change +