Package 

Interface CloseableStaticBitmap

  • 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.HasImageMetadata , com.facebook.imagepipeline.image.ImageInfo , java.io.Closeable , java.lang.AutoCloseable

    
    public interface CloseableStaticBitmap
     implements CloseableBitmap
                        
    • Method Summary

      Modifier and Type Method Description
      abstract CloseableReference<Bitmap> cloneUnderlyingBitmapReference()
      abstract int getExifOrientation()
      abstract int getRotationAngle()
      abstract CloseableReference<Bitmap> convertToBitmapReference()
      static CloseableStaticBitmap of(Bitmap bitmap, ResourceReleaser<Bitmap> resourceReleaser, QualityInfo qualityInfo, int rotationAngle) Creates a new instance of a CloseableStaticBitmap.
      static CloseableStaticBitmap of(CloseableReference<Bitmap> bitmapReference, QualityInfo qualityInfo, int rotationAngle) Creates a new instance of a CloseableStaticBitmap from an existing CloseableReference.
      static CloseableStaticBitmap of(Bitmap bitmap, ResourceReleaser<Bitmap> resourceReleaser, QualityInfo qualityInfo, int rotationAngle, int orientation) Creates a new instance of a CloseableStaticBitmap from an existing CloseableReference.
      static CloseableStaticBitmap of(CloseableReference<Bitmap> bitmapReference, QualityInfo qualityInfo, int rotationAngle, int exifOrientation) Creates a new instance of a CloseableStaticBitmap from an existing CloseableReference.
      • Methods inherited from class com.facebook.imagepipeline.image.CloseableBitmap

        getUnderlyingBitmap
      • Methods inherited from class com.facebook.imagepipeline.image.CloseableImage

        close, getHeight, getImageInfo, getQualityInfo, getSizeInBytes, getWidth, isClosed, isStateful
      • Methods inherited from class java.io.Closeable

        close
      • Methods inherited from class com.facebook.imagepipeline.image.HasImageMetadata

        getExtras
      • Methods inherited from class com.facebook.fresco.middleware.HasExtraData

        getExtra, getExtras, putExtra, putExtras
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • of

         static CloseableStaticBitmap of(Bitmap bitmap, ResourceReleaser<Bitmap> resourceReleaser, QualityInfo qualityInfo, int rotationAngle)

        Creates a new instance of a CloseableStaticBitmap.

        Parameters:
        bitmap - the bitmap to wrap
        resourceReleaser - ResourceReleaser to release the bitmap to
      • of

         static CloseableStaticBitmap of(CloseableReference<Bitmap> bitmapReference, QualityInfo qualityInfo, int rotationAngle)

        Creates a new instance of a CloseableStaticBitmap from an existing CloseableReference. TheCloseableStaticBitmap will hold a reference to the Bitmap until it's closed.

        Parameters:
        bitmapReference - the bitmap reference.
      • of

         static CloseableStaticBitmap of(Bitmap bitmap, ResourceReleaser<Bitmap> resourceReleaser, QualityInfo qualityInfo, int rotationAngle, int orientation)

        Creates a new instance of a CloseableStaticBitmap from an existing CloseableReference. TheCloseableStaticBitmap will hold a reference to the Bitmap until it's closed.

        Parameters:
        bitmap - the bitmap to wrap
        resourceReleaser - ResourceReleaser to release the bitmap to
      • of

         static CloseableStaticBitmap of(CloseableReference<Bitmap> bitmapReference, QualityInfo qualityInfo, int rotationAngle, int exifOrientation)

        Creates a new instance of a CloseableStaticBitmap from an existing CloseableReference. TheCloseableStaticBitmap will hold a reference to the Bitmap until it's closed.

        Parameters:
        bitmapReference - the bitmap reference.