Kofax Mobile SDK API Reference
Public Member Functions | List of all members
PreviewFrameEvent Class Reference
Inheritance diagram for PreviewFrameEvent:

Public Member Functions

 PreviewFrameEvent (Object sender, RealtimeVideoEvent evt)
 
Bitmap getBitmap ()
 
Bitmap getBitmap (boolean rotated)
 
Bitmap getBitmapLandscape ()
 
int getRotationLandscape ()
 
int getRotation ()
 
byte[] getData ()
 
int getWidth ()
 
int getHeight ()
 

Detailed Description

An event that indicates a preview frame is available from the camera.

The event includes the image data sent from the image sensor. A bitmap may be retrieved from this event by calling getBitmap().

This event is raised on a thread separate from the main UI thread. While this event it outstanding, no further PreviewFrameEvents will be raised.

See also
ImageCaptureView::addPreviewCallbackListener
ImageCaptureView::removePreviewCallbackListener

Constructor & Destructor Documentation

◆ PreviewFrameEvent()

PreviewFrameEvent ( Object  sender,
RealtimeVideoEvent  evt 
)

Member Function Documentation

◆ getBitmap() [1/2]

Bitmap getBitmap ( )

Lazily loads the image data into a bitmap

Returns
properly oriented image data as a bitmap

◆ getBitmap() [2/2]

Bitmap getBitmap ( boolean  rotated)

◆ getBitmapLandscape()

Bitmap getBitmapLandscape ( )

◆ getData()

byte [] getData ( )

◆ getHeight()

int getHeight ( )

◆ getRotation()

int getRotation ( )

◆ getRotationLandscape()

int getRotationLandscape ( )

◆ getWidth()

int getWidth ( )

The documentation for this class was generated from the following file:
Untitled Document © 2021 Kofax, Inc. All rights reserved. Use is subject to license terms.