java.lang.Object | |||
↳ | com.facebook.imagepipeline.image.CloseableImage | ||
↳ | com.facebook.imagepipeline.image.CloseableBitmap | ||
↳ | com.facebook.imagepipeline.image.CloseableAnimatedBitmap |
CloseableImage that contains array of Bitmaps and frame durations.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CloseableAnimatedBitmap(List<CloseableReference<Bitmap>> bitmapReferences, List<Integer> durations) | |||||||||||
CloseableAnimatedBitmap(List<Bitmap> bitmaps, List<Integer> durations, ResourceReleaser<Bitmap> resourceReleaser)
Creates a new instance of a CloseableStaticBitmap.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
close()
Releases the bitmaps to the pool.
| ||||||||||
List<Bitmap> |
getBitmaps()
Gets the bitmap frames.
| ||||||||||
List<Integer> |
getDurations()
Gets the frame durations.
| ||||||||||
int | getHeight() | ||||||||||
int | getSizeInBytes() | ||||||||||
Bitmap |
getUnderlyingBitmap()
Gets the first frame.
| ||||||||||
int | getWidth() | ||||||||||
synchronized boolean |
isClosed()
Returns whether this instance is closed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new instance of a CloseableStaticBitmap.
bitmaps | the bitmap frames. This list must be immutable. |
---|---|
durations | the frame durations, This list must be immutable. |
resourceReleaser | ResourceReleaser to release the bitmaps to |
Releases the bitmaps to the pool.
Gets the bitmap frames.
Gets the frame durations.
Gets the first frame.
Returns whether this instance is closed.