Class BitmapAndroid
java.lang.Object
com.flir.thermalsdk.image.Bitmap<android.graphics.Bitmap>
com.flir.thermalsdk.androidsdk.image.BitmapAndroid
Provides functionality to manage the Bitmap operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BitmapAndroid
createBitmap
(int width, int height, ImageBuffer.Format config) Create a empty bitmap base on specifications.static BitmapAndroid
createBitmap
(@NotNull ImageBuffer imageBuffer) Create a new bitmap base on the content of the buffer.long
android.graphics.Bitmap
int
int
getWidth()
void
recycle()
Deallocate the image and the buffer
-
Constructor Details
-
BitmapAndroid
public BitmapAndroid(android.graphics.Bitmap bitmap) Store a bitmap
-
-
Method Details
-
createBitmap
Create a new bitmap base on the content of the buffer.- Parameters:
imageBuffer
- an ImageBuffer to create the Bitmap from
-
createBitmap
Create a empty bitmap base on specifications.- Parameters:
width
- width of the created Bitmapheight
- height of the created Bitmapconfig
- an ImageBuffer format used to create the Bitmap
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getAllocationByteCount
public long getAllocationByteCount()- Specified by:
getAllocationByteCount
in classBitmap<android.graphics.Bitmap>
-
recycle
public void recycle()Description copied from class:Bitmap
Deallocate the image and the buffer -
getBitMap
public android.graphics.Bitmap getBitMap() -
getBuffer
-