KiteAnimation
A decoded animation: GIF, APNG and animated WebP all arrive in this shape. Static images decode as a single frame, so KiteImage.decodeAnimation is total over every supported format.
loopCount means the same thing in all three formats: 0 = loop forever, n > 0 = play the sequence n times. A file that carries no loop count at all gets 1 (play once), which is what its absence has always meant in practice.
Constructors
Properties
Functions
cropped applied to every frame, preserving delays and loop count.
oriented applied to every frame, preserving delays and loop count.
rotated180 applied to every frame.
rotated270 applied to every frame.
rotated90 applied to every frame.
Downscale every frame of an animation to fit inside maxWidth×maxHeight (same box filter and aspect handling as KiteBitmap.scaled), preserving delays and the loop count. This is where animated memory goes: a full-screen GIF shown as an avatar keeps W×H×4 bytes per frame unless scaled down.