ExPng.Chunks.Transparency (ExPng v1.0.0)

Representation of transparency data for an image

Link to this section Summary

Link to this section Types

Specs

t() :: %ExPng.Chunks.Transparency{
  data: ExPng.maybe(binary()),
  transparency: ExPng.maybe([integer()] | binary()),
  type: :tRNS
}

Link to this section Functions

Link to this function

build_from_pixel_palette(pixels)

Specs

build_from_pixel_palette([ExPng.Color.t()]) :: ExPng.maybe(t())
Link to this function

new(atom, data)

Specs

new(:tRNS, binary()) :: {:ok, t()}
Link to this function

parse_data(transparency, arg2)

Specs

parse_data(ExPng.maybe(t()), ExPng.Chunks.Header.t()) ::
  {:ok, ExPng.maybe(t())} | {:error, binary()}