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

Options and option validation for Image.embed/4.

Link to this section Summary

Types

Options applicable to Image.embed/4.

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

Link to this section Types

@type embed_options() :: [
  background: Image.Color.t() | :average,
  extend_mode: extend_mode(),
  x: non_neg_integer() | :center,
  y: non_neg_integer() | :center
]

Options applicable to Image.embed/4.

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

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

Link to this section Functions

Link to this function

validate_options(image, width, height, options)

View Source

Validate the options for Image.embed/4.