View Source Mudbrick.Image (mudbrick v0.7.0)

Summary

Types

@type image_option() ::
  {:position, Mudbrick.coords()}
  | {:scale, scale()}
  | {:skew, Mudbrick.coords()}
@type image_options() :: [image_option()]
@type scale() :: {scale_dimension(), scale_dimension()}
@type scale_dimension() :: number() | :auto
@type t() :: %Mudbrick.Image{
  bits_per_component: number(),
  file: iodata(),
  filter: :DCTDecode,
  height: number(),
  resource_identifier: atom(),
  width: number()
}