pxm v0.1.0 PXM.Creator View Source
Module to create new images
Link to this section Summary
Functions
Allow to create image with pbm format.
Link to this section Types
Link to this type
image()
View Source
image()
View Source
image() :: PXM.Image.t()
image() :: PXM.Image.t()
Link to this section Functions
Link to this function
new_pbm(params \\ []) View Source
Allow to create image with pbm format.
Options
:width
- Image width, default is 1000.:height
- Image height, default is 1000.
Example
iex> new_pbm(width: 3, height: 3)
{:ok,
%PXM.Image{
code: "P1",
height: 3,
pixel_limit: 1,
pixels: #Function<65.117072283/2 in Stream.unfold/2>,
width: 3
}}
Link to this function
new_pgm(params \\ []) View Source
Link to this function