Skip to content

ApngResourceFormat

class ApngResourceFormat
Implements: IResourceFormat
Package: dev.joid.lib.resource.format.impl · Module: core · Source: ApngResourceFormat.java

The built-in format of PNG files, still or animated (APNG).

A PNG with an animation control chunk plays as an animated image; any other PNG is a still image.

ReturnsSignatureSummary
ApngResourceFormat()Creates the format.

ReturnsSignatureSummary
booleansupports(byte[] header)If true, header starts with the PNG signature.
IResourceDecoderdecoder(Asset asset, byte[] header)Returns an AnimatedResourceDecoder when the file is an APNG, otherwise a RasterResourceDecoder; it reads up to 64 KB when the header is not enough to tell.

ApngResourceFormat()

Creates the format.

boolean supports(byte[] header)

If true, header starts with the PNG signature.

IResourceDecoder decoder(Asset asset, byte[] header)

Returns an AnimatedResourceDecoder when the file is an APNG, otherwise a RasterResourceDecoder; it reads up to 64 KB when the header is not enough to tell.


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

Report a problem with this page