View Source Image.Options.Embed (image v0.43.1)

Options and option validation for Image.embed/4.

Summary

Types

Options applicable to Image.embed/4.

Options list for Image.embed/4.

When extending the canvas the generated pixels are determined by this option.

Types

@type embed_option() ::
  {:background_color, Image.Color.t() | :average}
  | {:background_transparency, Image.Color.transparency()}
  | {:extend_mode, extend_mode()}
  | {:x, non_neg_integer() | :center}
  | {:y, non_neg_integer() | :center}

Options applicable to Image.embed/4.

@type embed_options() :: [embed_option()]

Options list for Image.embed/4.

@type extend_mode() :: :black | :white | :copy | :repeat | :mirror | :background

When extending the canvas the generated pixels are determined by this option.

Functions

Link to this function

validate_options(image, width, height, options)

View Source

Validate the options for Image.embed/4.