include_pnm

Macro include_pnm 

Source
include_pnm!() { /* proc-macro */ }
Expand description

Include a PAM image as a 2D array of the specified type and number of channels.

Should be called as include_pnm!(ty, filename).

Supported types are:

  • [bool; 1] (include_pbm)
  • [bool; 2] (include_pbma)
  • [u8; 1] (include_pgm)
  • [u8; 2] (include_pgma)
  • [u8; 3] (include_ppm)
  • [u8; 4] (include_ppma)
  • [u16; 1] (include_pgm16)
  • [u16; 2] (include_pgma16)
  • [u16; 3] (include_ppm16)
  • [u16; 4] (include_ppma16)