Image.Options.Draw (image v0.73.0)

Copy Markdown View Source

Options and options validation for the drawing functions.

Summary

Types

circle()

@type circle() :: [fill: boolean(), color: Image.Pixel.t()]

flood()

@type flood() :: [equal: boolean(), color: Image.Pixel.t()]

image()

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

line()

@type line() :: [{:color, Image.Pixel.t()}]

mask()

@type mask() :: [{:color, Image.Pixel.t()}]

point()

@type point() :: [{:color, Image.Pixel.t()}]

rect()

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

smudge()

@type smudge() :: []

Functions

validate_options(image, type, options)

Validate the options for Image.Draw.