Image.Options.WarpPerspective (image v0.72.0)

Copy Markdown View Source

Options and option validation for Image.warp_perspective/4.

Summary

Types

t()

Options for Image.warp_perspective/4.

Types

t()

@type t() :: [warp_perspective_option()]

Options for Image.warp_perspective/4.

warp_perspective_option()

@type warp_perspective_option() ::
  {:background, Image.BackgroundColor.spec() | nil}
  | {:extend_mode, Image.Options.Affine.extend_mode()}

Options applicable to Image.warp_perspective/4.

Functions

validate_options(image, options)

@spec validate_options(Vix.Vips.Image.t(), Keyword.t()) ::
  {:ok, Keyword.t()} | {:error, Image.error()}

Validate the options for Image.warp_perspective/4.