Barlix.PNG (barlix v0.6.3) View Source
This module implements the PNG renderer.
Link to this section Summary
Functions
Renders the given code in png image format.
Link to this section Functions
Specs
print(Barlix.code(), Keyword.t()) :: :ok | {:ok, iodata()}
Renders the given code in png image format.
Options
:file
- (path) - target file path. If not set, PNG will be returned as iodata.:xdim
- (integer) - width of a single bar in pixels. Defaults to1
.:height
- (integer) - height of the bar in pixels. Defaults to100
.:margin
- (integer) - margin size in pixels. Defaults to10
.