ExPng.Chunks.Ancillary (ExPng v0.2.0)

Struct storage format for any ancillary chunks present in a parsed PNG image file. Currently ExPng does not make use of these, but saves them in order to retain the full original state of an image's raw data.

Link to this section Summary

Functions

Returns a new ancillary chunk built from the provided chunk type and binary data.

Link to this section Types

Specs

t() :: %ExPng.Chunks.Ancillary{data: binary(), type: atom()}

Link to this section Functions

Link to this function

new(type, data)

Specs

new(atom(), binary()) :: {:ok, t()}

Returns a new ancillary chunk built from the provided chunk type and binary data.