Back to Fresco

CloseableImage

docs/javadoc/reference/com/facebook/imagepipeline/image/CloseableImage.html

3.6.015.5 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Enums

Packages | Classes

Summary: Ctors | Methods | Protected Methods | Inherited Methods | [Expand All]

public abstract class

CloseableImage

extends Object
implements HasImageMetadataImageInfo Closeable

| java.lang.Object | | ↳ | com.facebook.imagepipeline.image.CloseableImage |

| Known Direct Subclasses

CloseableAnimatedImage, CloseableBitmap

| CloseableAnimatedImage | Encapsulates the data needed in order for AnimatedDrawable to render a AnimatedImage. | | CloseableBitmap | CloseableImage that wraps a bitmap. |

|

| Known Indirect Subclasses

CloseableStaticBitmap

| CloseableStaticBitmap | CloseableImage that contains one Bitmap. |

|

Class Overview

A simple wrapper around an image that implements Closeable

Summary

Public Constructors
Public Methods
abstract void
Closes this instance and releases the resources.
Map<String, Object>
QualityInfo
Returns quality information for the image.
abstract int
abstract boolean
Returns whether this instance is closed.
boolean
Whether or not this image contains state for a particular view of the image (for example, the image for an animated GIF might contain the current frame being viewed).
void
Sets extras that match mImageExtrasList to this image from supplied extras
Protected Methods
void
Ensures that the underlying resources are always properly released.

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface com.facebook.imagepipeline.image.HasImageMetadata

| abstract Map<String, Object> | getExtras() |

| | From interface com.facebook.imagepipeline.image.ImageInfo

| abstract int | getHeight() | | abstract QualityInfo | getQualityInfo() | | abstract int | getWidth() |

| | From interface java.io.Closeable

| abstract void | close() |

| | From interface java.lang.AutoCloseable

| abstract void | close() |

|

Public Constructors

public CloseableImage()

Public Methods

public abstract void close()

Closes this instance and releases the resources.

public Map<String, Object> getExtras()

public QualityInfo getQualityInfo()

Returns quality information for the image.

Image classes that can contain intermediate results should override this as appropriate.

public abstract int getSizeInBytes()

Returns
  • size in bytes of the bitmap(s)

public abstract boolean isClosed()

Returns whether this instance is closed.

public boolean isStateful()

Whether or not this image contains state for a particular view of the image (for example, the image for an animated GIF might contain the current frame being viewed). This means that the image should not be stored in the bitmap cache.

public void setImageExtras(Map<String, Object> extras)

Sets extras that match mImageExtrasList to this image from supplied extras

Protected Methods

protected void finalize()

Ensures that the underlying resources are always properly released.

Throws

| Throwable | |

+Generated by Doclava. +