java.lang.Object | |||
↳ | com.facebook.imagepipeline.image.CloseableImage | ||
↳ | com.facebook.imagepipeline.image.CloseableBitmap | ||
↳ | com.facebook.imagepipeline.image.CloseableStaticBitmap |
CloseableImage that contains one Bitmap.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CloseableStaticBitmap(Bitmap bitmap, ResourceReleaser<Bitmap> resourceReleaser, QualityInfo qualityInfo, int rotationAngle)
Creates a new instance of a CloseableStaticBitmap.
| |||||||||||
CloseableStaticBitmap(CloseableReference<Bitmap> bitmapReference, QualityInfo qualityInfo, int rotationAngle)
Creates a new instance of a CloseableStaticBitmap from an existing CloseableReference.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
close()
Releases the bitmap to the pool.
| ||||||||||
synchronized CloseableReference<Bitmap> |
convertToBitmapReference()
Convert this object to a CloseableReference<Bitmap>.
| ||||||||||
int | getHeight() | ||||||||||
QualityInfo |
getQualityInfo()
Returns quality information for the image.
| ||||||||||
int | getRotationAngle() | ||||||||||
int | getSizeInBytes() | ||||||||||
Bitmap |
getUnderlyingBitmap()
Gets the underlying bitmap.
| ||||||||||
int | getWidth() | ||||||||||
synchronized boolean |
isClosed()
Returns whether this instance is closed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new instance of a CloseableStaticBitmap.
bitmap | the bitmap to wrap |
---|---|
resourceReleaser | ResourceReleaser to release the bitmap to |
Creates a new instance of a CloseableStaticBitmap from an existing CloseableReference. The CloseableStaticBitmap will hold a reference to the Bitmap until it's closed.
bitmapReference | the bitmap reference. |
---|
Releases the bitmap to the pool.
Convert this object to a CloseableReference<Bitmap>.
You cannot call this method on an object that has already been closed.
The reference count of the bitmap is preserved. After calling this method, this object can no longer be used and no longer points to the bitmap.
IllegalArgumentException | if this object has already been closed. |
---|
Gets the underlying bitmap.
Returns whether this instance is closed.