ExPng (ExPng v1.0.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
Link to this type
bit_depth()
Specs
bit_depth() :: 1 | 2 | 4 | 8 | 16
Link to this type
color_mode()
Specs
color_mode() :: grayscale() | truecolor() | indexed() | grayscale_alpha() | truecolor_alpha()
Link to this type
filter()
Specs
filter() :: filter_none() | filter_sub() | filter_up() | filter_average() | filter_paeth()
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
Link to this type
filter_up()
Specs
filter_up() :: 2
Link to this type
grayscale()
Specs
grayscale() :: 0
Link to this type
grayscale_alpha()
Specs
grayscale_alpha() :: 4
Link to this type
indexed()
Specs
indexed() :: 3
Link to this type
maybe(t)
Specs
maybe(t) :: t | nil
Link to this type
truecolor()
Specs
truecolor() :: 2
Link to this type
truecolor_alpha()
Specs
truecolor_alpha() :: 6