Image.Options.Draw (image v0.59.0)

View Source

Options and options validation for the drawing functionss.

Summary

Types

circle()

@type circle() :: [fill: boolean(), color: Image.Color.t()] | map()

flood()

@type flood() :: [equal: boolean(), color: Image.Color.t()] | map()

image()

@type image() :: [{:mode, Image.CombineMode.t()}] | map()

line()

@type line() :: [{:color, Image.Color.t()}] | map()

mask()

@type mask() :: [{:color, Image.Color.t()}] | map()

point()

@type point() :: [{:color, Image.Color.t()}] | map()

rect()

@type rect() ::
  [fill: boolean(), color: Image.Color.t(), stroke_width: pos_integer()] | map()

smudge()

@type smudge() :: [] | map()

Functions

validate_options(type, options)

Validate the options for Image.Draw.