ExPng.Chunks.Palette (ExPng v0.2.0)

Representation of the color palette for a PNG image encoded using the indexed filter method.

Link to this section Summary

Link to this section Types

Specs

t() :: %ExPng.Chunks.Palette{
  data: ExPng.maybe(binary()),
  palette: [ExPng.Pixel.t(), ...],
  type: :PLTE
}

Link to this section Functions

Link to this function

new(atom, data)

Specs

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