Rasterling.Image (Rasterling v0.1.0)

Copy Markdown View Source

Decoded row-major, eight-bit RGBA pixels, without source metadata.

Summary

Functions

Returns the RGBA tuple at a zero-based coordinate.

Types

t()

@type t() :: %Rasterling.Image{
  format: :png | :jpeg | :gif | :bmp,
  height: pos_integer(),
  pixels: binary(),
  width: pos_integer()
}

Functions

pixel(image, x, y)

Returns the RGBA tuple at a zero-based coordinate.