IResourceAnimationReader
interface IResourceAnimationReader
Known subtypes: ApngResourceAnimationReader, GifResourceAnimationReader, WebpResourceAnimationReader
Package: dev.joid.lib.resource.animation · Module: core · Source: IResourceAnimationReader.java
Reads every frame of an animated image file into a ResourceAnimation.
Description
Section titled “Description”Give it to AnimatedResourceDecoder.create from the IResourceFormat of your format.
Compose the frames on a ResourceAnimationCanvas when the format stores them as partial updates.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
ResourceAnimation | read(InputStream stream) abstract | JOID calls it on a loading thread, once per file: read the whole stream and return its frames, each a full image of the animation size. |
Method details
Section titled “Method details”ResourceAnimation read(InputStream stream) abstract
JOID calls it on a loading thread, once per file: read the whole stream and return its frames, each a full image of the animation size.
Throw IOException or IllegalArgumentException when the file is damaged; the resource then fails.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
