-
- All Implemented Interfaces:
-
com.facebook.common.references.HasBitmap,com.facebook.fresco.middleware.HasExtraData,com.facebook.imagepipeline.image.CloseableBitmap,com.facebook.imagepipeline.image.CloseableImage,com.facebook.imagepipeline.image.CloseableStaticBitmap,com.facebook.imagepipeline.image.HasImageMetadata,com.facebook.imagepipeline.image.ImageInfo,java.io.Closeable,java.lang.AutoCloseable
@ThreadSafe() public class BaseCloseableStaticBitmap extends BaseCloseableImage implements CloseableStaticBitmap
CloseableImage that contains one Bitmap.
-
-
Method Summary
Modifier and Type Method Description voidclose()Releases the bitmap to the pool. synchronized CloseableReference<Bitmap>convertToBitmapReference()Convert this object to a CloseableReference<Bitmap>. synchronized CloseableReference<Bitmap>cloneUnderlyingBitmapReference()Get a cloned bitmap reference for the underlying original CloseableReference<Bitmap>. synchronized booleanisClosed()Returns whether this instance is closed. BitmapgetUnderlyingBitmap()Gets the underlying bitmap. intgetSizeInBytes()intgetWidth()intgetHeight()intgetRotationAngle()intgetExifOrientation()QualityInfogetQualityInfo()Returns quality information for the image. static voidsetUseSimpleCloseableStaticBitmap(boolean useSimpleCloseableStaticBitmap)static booleanshouldUseSimpleCloseableStaticBitmap()-
Methods inherited from class com.facebook.imagepipeline.image.BaseCloseableImage
getExtra, getExtra, getExtras, getImageInfo, isStateful, putExtra, putExtras -
Methods inherited from class java.io.Closeable
close -
Methods inherited from class com.facebook.fresco.middleware.HasExtraData
getExtra, getExtras, putExtra, putExtras -
Methods inherited from class com.facebook.imagepipeline.image.CloseableStaticBitmap
of, of, of, of -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
close
void close()
Releases the bitmap to the pool.
-
convertToBitmapReference
synchronized CloseableReference<Bitmap> convertToBitmapReference()
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 canno longer be used and no longer points to the bitmap.
See cloneUnderlyingBitmapReference for an alternative that returns a clonedbitmap reference instead.
-
cloneUnderlyingBitmapReference
@Nullable() synchronized CloseableReference<Bitmap> cloneUnderlyingBitmapReference()
-
isClosed
synchronized boolean isClosed()
Returns whether this instance is closed.
-
getUnderlyingBitmap
Bitmap getUnderlyingBitmap()
Gets the underlying bitmap.
-
getSizeInBytes
int getSizeInBytes()
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
getRotationAngle
int getRotationAngle()
-
getExifOrientation
int getExifOrientation()
-
getQualityInfo
QualityInfo getQualityInfo()
Returns quality information for the image.
-
setUseSimpleCloseableStaticBitmap
static void setUseSimpleCloseableStaticBitmap(boolean useSimpleCloseableStaticBitmap)
-
shouldUseSimpleCloseableStaticBitmap
static boolean shouldUseSimpleCloseableStaticBitmap()
-
-
-
-