ExPng (ExPng v0.2.0)

ExPng is a pure Elixir implementation of the PNG image format.

Images can be created by decoding an existing PNG file

ExPng.Image.from_file("adorable_kittens.png")

or creating a blank image with a provided width and height

ExPng.Image.new(200, 100)

Images can be edited using ExPng.Image.draw/3, ExPng.Image.line/4, ExPng.Image.clear/2 and ExPng.Image.erase/1

Link to this section Summary

Link to this section Types

Specs

bit_depth() :: 1 | 2 | 4 | 8 | 16
Link to this type

color_mode()

Specs

color_mode() ::
  grayscale() | truecolor() | indexed() | grayscale_alpha() | truecolor_alpha()

Specs

Link to this type

filter_average()

Specs

filter_average() :: 3
Link to this type

filter_none()

Specs

filter_none() :: 0
Link to this type

filter_paeth()

Specs

filter_paeth() :: 4
Link to this type

filter_sub()

Specs

filter_sub() :: 1

Specs

filter_up() :: 2

Specs

grayscale() :: 0
Link to this type

grayscale_alpha()

Specs

grayscale_alpha() :: 4

Specs

indexed() :: 3

Specs

maybe(t) :: t | nil

Specs

truecolor() :: 2
Link to this type

truecolor_alpha()

Specs

truecolor_alpha() :: 6