docs/javadoc/reference/com/facebook/animated/gif/GifImage.html
|
|
Summary: Inherited Constants | Ctors | Methods | Protected Methods | Inherited Methods | [Expand All]
public class
extends Object
implements AnimatedImageAnimatedImageDecoder
| java.lang.Object | | ↳ | com.facebook.animated.gif.GifImage |
A representation of a GIF image. An instance of this class will hold a copy of the encoded data in memory along with the parsed header data. Frames are decoded on demand via GifFrame.
| [Expand] Inherited Constants | | --- | | From interface com.facebook.imagepipeline.animated.base.AnimatedImage
| int | LOOP_COUNT_INFINITE | |
|
| Public Constructors |
|---|
| Public Methods |
|---|
| static GifImage |
Creates a GifImage from the specified encoded data. |
| static GifImage |
Creates a GifImage from a ByteBuffer containing the image. |
| static GifImage |
Creates a GifImage from a ByteBuffer containing the image. |
| static GifImage |
Creates a GifImage from a file descriptor containing the image. |
| static GifImage |
| AnimatedImage |
| Factory method to create the AnimatedImage from a ByteBuffer |
| AnimatedImage |
| Factory method to create the AnimatedImage from a native pointer |
| void |
| Disposes the instance. |
| boolean |
Returns whether renderFrame(int, int, Bitmap) supports scaling to arbitrary sizes or whether scaling must be done externally. |
| int |
| Gets the duration of the animated image. |
| GifFrame |
Creates an AnimatedImageFrame at the specified index. |
| int |
| Gets the number of frames in the image. |
| int[] |
| Gets the duration of each frame of the animated image. |
| AnimatedDrawableFrameInfo |
| Gets the frame info for the specified frame. |
| int |
| Gets the height of the image (also known as the canvas in WebP nomenclature). |
| int |
| Gets the number of loops to run the animation for. |
| int |
| Gets the size of bytes of the encoded image data (which is the data kept in memory for the image). |
| int |
| Gets the width of the image (also known as the canvas in WebP nomenclature). |
| boolean |
| Protected Methods |
|---|
| void |
| [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.animated.base.AnimatedImage
| abstract void | dispose()
Disposes the instance.
|
| abstract boolean | doesRenderSupportScaling()
Returns whether renderFrame(int, int, Bitmap) supports scaling to arbitrary sizes or whether scaling must be done externally.
|
| abstract int | getDuration()
Gets the duration of the animated image.
|
| abstract AnimatedImageFrame | getFrame(int frameNumber)
Creates an AnimatedImageFrame at the specified index.
|
| abstract int | getFrameCount()
Gets the number of frames in the image.
|
| abstract int[] | getFrameDurations()
Gets the duration of each frame of the animated image.
|
| abstract AnimatedDrawableFrameInfo | getFrameInfo(int frameNumber)
Gets the frame info for the specified frame.
|
| abstract int | getHeight()
Gets the height of the image (also known as the canvas in WebP nomenclature).
|
| abstract int | getLoopCount()
Gets the number of loops to run the animation for.
|
| abstract int | getSizeInBytes()
Gets the size of bytes of the encoded image data (which is the data kept in memory for the image).
|
| abstract int | getWidth()
Gets the width of the image (also known as the canvas in WebP nomenclature).
|
| | From interface com.facebook.imagepipeline.animated.factory.AnimatedImageDecoder
| abstract AnimatedImage | decodeFromByteBuffer(ByteBuffer byteBuffer, ImageDecodeOptions options) Factory method to create the AnimatedImage from a ByteBuffer | | abstract AnimatedImage | decodeFromNativeMemory(long nativePtr, int sizeInBytes, ImageDecodeOptions options) Factory method to create the AnimatedImage from a native pointer |
|
Creates a GifImage from the specified encoded data. This will throw if it fails to create. This is meant to be called on a worker thread.
| source | the data to the image (a copy will be made) |
Creates a GifImage from a ByteBuffer containing the image. This will throw if it fails to create.
| byteBuffer | the ByteBuffer containing the image (a copy will be made) |
Creates a GifImage from a ByteBuffer containing the image. This will throw if it fails to create.
| byteBuffer | the ByteBuffer containing the image (a copy will be made) |
Creates a GifImage from a file descriptor containing the image. This will throw if it fails to create.
| fileDescriptor | the file descriptor containing the image (a copy will be made) |
Factory method to create the AnimatedImage from a ByteBuffer
| byteBuffer | The ByteBuffer containing the image | | options | The options for decoding |
Factory method to create the AnimatedImage from a native pointer
| nativePtr | The native pointer | | sizeInBytes | The size in byte to allocate | | options | The options for decoding |
Disposes the instance. This will free native resources held by this instance. Once called, other methods on this instance may throw. Note, the underlying native resources may not actually be freed until all associated instances of AnimatedImageFrame are disposed or finalized as well.
Returns whether renderFrame(int, int, Bitmap) supports scaling to arbitrary sizes or whether scaling must be done externally.
Gets the duration of the animated image.
Creates an AnimatedImageFrame at the specified index.
| frameNumber | the index of the frame |
AnimatedImageFrameGets the number of frames in the image.
Gets the duration of each frame of the animated image.
Gets the frame info for the specified frame.
| frameNumber | the frame to get the info for |
Gets the height of the image (also known as the canvas in WebP nomenclature).
Gets the number of loops to run the animation for.
Gets the size of bytes of the encoded image data (which is the data kept in memory for the image).
Gets the width of the image (also known as the canvas in WebP nomenclature).
+Generated by Doclava. +