Package 

Class ApngDrawable

  • All Implemented Interfaces:
    android.graphics.drawable.Animatable , androidx.vectordrawable.graphics.drawable.Animatable2Compat

    
    public final class ApngDrawable
    extends Drawable implements Animatable2Compat
                        

    An animated Drawable that plays the frames of an animated PNG.

    This drawable holds ApngState.apng which contains the width, height, image count, duration and repeat count from APNG meta data. These meta data can be obtained with decode function.

    Also ApngState.apng has other responsibility to draw given frame to a canvas. ApngDrawable delegates ApngState.apng to draw a frame.