public class

AnimatedImageCompositor

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.animated.impl.AnimatedImageCompositor

Class Overview

Contains the logic for compositing the frames of an AnimatedImage. Animated image formats like GIF and WebP support inter-frame compression where a subsequent frame may require being blended on a previous frame in order to render the full frame. This class encapsulates the behavior to be able to render any frame of the image. Designed to work with a cache via a Callback.

Summary

Nested Classes
interface AnimatedImageCompositor.Callback Callback for caching. 
Public Constructors
AnimatedImageCompositor(AnimatedDrawableBackend animatedDrawableBackend, AnimatedImageCompositor.Callback callback)
Public Methods
void renderFrame(int frameNumber, Bitmap bitmap)
Renders the specified frame.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AnimatedImageCompositor (AnimatedDrawableBackend animatedDrawableBackend, AnimatedImageCompositor.Callback callback)

Public Methods

public void renderFrame (int frameNumber, Bitmap bitmap)

Renders the specified frame. Only should be called on the rendering thread.

Parameters
frameNumber the frame to render
bitmap the bitmap to render into