Class BitmapAndroid

java.lang.Object
com.flir.thermalsdk.image.Bitmap<android.graphics.Bitmap>
com.flir.thermalsdk.androidsdk.image.BitmapAndroid

public class BitmapAndroid extends Bitmap<android.graphics.Bitmap>
Provides functionality to manage the Bitmap operations.
  • Constructor Details

    • BitmapAndroid

      public BitmapAndroid(android.graphics.Bitmap bitmap)
      Store a bitmap
  • Method Details

    • createBitmap

      public static BitmapAndroid createBitmap(@NotNull @NotNull ImageBuffer imageBuffer)
      Create a new bitmap base on the content of the buffer.
      Parameters:
      imageBuffer - an ImageBuffer to create the Bitmap from
    • createBitmap

      public static BitmapAndroid createBitmap(int width, int height, ImageBuffer.Format config)
      Create a empty bitmap base on specifications.
      Parameters:
      width - width of the created Bitmap
      height - height of the created Bitmap
      config - an ImageBuffer format used to create the Bitmap
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in class Bitmap<android.graphics.Bitmap>
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in class Bitmap<android.graphics.Bitmap>
    • getAllocationByteCount

      public long getAllocationByteCount()
      Specified by:
      getAllocationByteCount in class Bitmap<android.graphics.Bitmap>
    • recycle

      public void recycle()
      Description copied from class: Bitmap
      Deallocate the image and the buffer
      Specified by:
      recycle in class Bitmap<android.graphics.Bitmap>
    • getBitMap

      public android.graphics.Bitmap getBitMap()
      Overrides:
      getBitMap in class Bitmap<android.graphics.Bitmap>
    • getBuffer

      public ImageBuffer getBuffer()
      Overrides:
      getBuffer in class Bitmap<android.graphics.Bitmap>