Package 

Class AnimatedImageCompositor


  • 
    public class AnimatedImageCompositor
    
                        

    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.

    • Method Detail

      • renderFrame

         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