pxm v0.1.0 PXM.Creator View Source

Module to create new images

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function

new_pbm(params \\ []) View Source
new_pbm(none() | keyword()) :: image()

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
  }}