-
- All Implemented Interfaces:
-
com.clevertap.android.sdk.gif.GifDecoder.BitmapProvider
public class SimpleBitmapProvider implements GifDecoder.BitmapProvider
-
-
Method Summary
Modifier and Type Method Description Bitmapobtain(int width, int height, Bitmap.Config config)Returns an Bitmap with exactly the given dimensions and config. Array<byte>obtainByteArray(int size)Returns a byte array used for decoding and generating the frame bitmap. Array<int>obtainIntArray(int size)Returns an int array used for decoding/generating the frame bitmaps. voidrelease(Array<byte> bytes)Releases the given byte array back to the pool. voidrelease(Bitmap bitmap)Releases the given Bitmap back to the pool. voidrelease(Array<int> array)Release the given array back to the pool. -
-
Method Detail
-
obtain
@NonNull() Bitmap obtain(int width, int height, Bitmap.Config config)
Returns an Bitmap with exactly the given dimensions and config.
- Parameters:
width- The width in pixels of the desired android.graphics.Bitmap.height- The height in pixels of the desired android.graphics.Bitmap.config- The android.graphics.Bitmap.Config of the desired .
-
obtainByteArray
Array<byte> obtainByteArray(int size)
Returns a byte array used for decoding and generating the frame bitmap.
- Parameters:
size- the size of the byte array to obtain
-
obtainIntArray
Array<int> obtainIntArray(int size)
Returns an int array used for decoding/generating the frame bitmaps.
-
-
-
-