
ar.com.hjg.pngj.IChunkFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pngj Show documentation
Show all versions of pngj Show documentation
Pure Java library for efficient PNG encoding/decoding
The newest version!
package ar.com.hjg.pngj;
import ar.com.hjg.pngj.chunks.ChunkRaw;
import ar.com.hjg.pngj.chunks.PngChunk;
/**
* Factory to create a {@link PngChunk} from a {@link ChunkRaw}.
*
* Used by {@link PngReader}
*/
public interface IChunkFactory {
/**
* @param chunkRaw Chunk in raw form. Data can be null if it was skipped or processed directly (eg
* IDAT)
* @param imgInfo Not normally necessary, but some chunks want this info
* @return should never return null.
*/
public PngChunk createChunk(ChunkRaw chunkRaw, ImageInfo imgInfo);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy