ExPng.Chunks.End (ExPng v0.2.0)

Representation of the IEND final chunk in an encoded PNG image. This is an empty data chunk, but required for properly decoding an image to mark the end of the image's data, and serves as a bookend when encoding an ExPng.Image to PNG.

Link to this section Summary


Creates a new End chunk.

Link to this section Types


t() :: %ExPng.Chunks.End{type: :IEND}

Link to this section Functions

Link to this function

new(atom, data)


new(:IEND, term()) :: {:ok, t()}

Creates a new End chunk.