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

Options and options validation for the drawing functionss.

Link to this section Summary

Link to this section Types

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

Link to this section Functions

Link to this function

validate_options(type, options)

View Source

Validate the options for Image.Draw.