View Source Image.Options.Draw (image v0.54.4)

Options and options validation for the drawing functionss.

Summary

Types

@type circle() :: [fill: boolean(), color: Image.Color.t()] | map()
@type flood() :: [equal: boolean(), color: Image.Color.t()] | map()
@type image() :: [{:mode, Image.CombineMode.t()}] | map()
@type line() :: [{:color, Image.Color.t()}] | map()
@type mask() :: [{:color, Image.Color.t()}] | map()
@type point() :: [{:color, Image.Color.t()}] | map()
@type rect() ::
  [fill: boolean(), color: Image.Color.t(), stroke_width: pos_integer()] | map()
@type smudge() :: [] | map()

Functions

Link to this function

validate_options(type, options)

View Source

Validate the options for Image.Draw.