Packages

A pure Erlang library for creating PNG images. It can currently create 8 and 16 bit RGB, RGB with alpha, indexed, grayscale and grayscale with alpha images.

Current section

Files

Jump to
png include png.hrl
Raw

include/png.hrl

-define(PNG_INDEXED_8, {indexed, 8}).
-define(PNG_GRAYSCALE_8, {grayscale, 8}).
-define(PNG_GRAYSCALE_16, {grayscale, 16}).
-define(PNG_GRAYSCALE_ALPHA_8, {grayscale_alpha, 8}).
-define(PNG_GRAYSCALE_ALPHA_16, {grayscale_alpha, 16}).
-define(PNG_RGB_8, {rgb, 8}).
-define(PNG_RGB_16, {rgb, 16}).
-define(PNG_RGBA_8, {rgba, 8}).
-define(PNG_RGBA_16, {rgba, 16}).
-record(png_config, {size = {0, 0},
mode = ?PNG_GRAYSCALE_8,
compression_method = 0,
filter_method = 0,
interlace_method = 0}).