fm.liveswitch.android.ImageUtility Class Reference

Utility class for common bitmap operations. More...

Static Public Member Functions

static VideoBuffer bitmapToBuffer (Bitmap bitmap) throws Exception
 Converts an Android Bitmap to a VideoBuffer. More...
 
static Bitmap bufferToBitmap (VideoBuffer videoBuffer)
 Converts a VideoBuffer to an Android Bitmap. More...
 

Detailed Description

Utility class for common bitmap operations.

Member Function Documentation

◆ bitmapToBuffer()

static VideoBuffer fm.liveswitch.android.ImageUtility.bitmapToBuffer ( Bitmap  bitmap) throws Exception
static

Converts an Android Bitmap to a VideoBuffer.

Parameters
bitmapThe image to convert.
Returns

◆ bufferToBitmap()

static Bitmap fm.liveswitch.android.ImageUtility.bufferToBitmap ( VideoBuffer  videoBuffer)
static

Converts a VideoBuffer to an Android Bitmap.

Parameters
videoBufferThe video buffer to convert.
Returns