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

Options and options validation for the drawing functionss.

Summary

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() :: []

Functions

Link to this function

validate_options(type, options)

View Source

Validate the options for Image.Draw.