Class ImageUtility
Utility class for common bitmap operations.
Inheritance
System.Object
ImageUtility
Namespace: FM.LiveSwitch.Android
Assembly: FM.LiveSwitch.Android.dll
Syntax
public class ImageUtility : object
Methods
BitmapToBuffer(Bitmap)
Converts an Android Bitmap to a VideoBuffer.
Declaration
public static VideoBuffer BitmapToBuffer(Bitmap bitmap)
Parameters
Type | Name | Description |
---|---|---|
Bitmap | bitmap | The image to convert. |
Returns
Type | Description |
---|---|
VideoBuffer |
BufferToBitmap(VideoBuffer)
Converts a VideoBuffer to an Android Bitmap.
Declaration
public static Bitmap BufferToBitmap(VideoBuffer videoBuffer)
Parameters
Type | Name | Description |
---|---|---|
VideoBuffer | videoBuffer | The video buffer to convert. |
Returns
Type | Description |
---|---|
Bitmap |