Press.Image (press v0.1.0)

Copy Markdown View Source

Represents an image decoded and prepared for PDF embedding.

Summary

Types

Color space of the image data.

Supported image formats.

t()

An image decoded and prepared for PDF embedding.

Types

color_space()

@type color_space() :: :rgb | :gray

Color space of the image data.

format()

@type format() :: :jpeg | :png

Supported image formats.

t()

@type t() :: %Press.Image{
  alpha_data: binary() | nil,
  color_space: color_space(),
  data: binary(),
  format: format(),
  height: pos_integer(),
  id: String.t() | nil,
  width: pos_integer()
}

An image decoded and prepared for PDF embedding.