Function pnm::encode

source ·
pub fn encode(x: impl Encode) -> Vec<u8>
Expand description

Encodes an image to one of the pgm or ppm portable anymap formats.

Please note that this will not produce a pam, use [PAM] for that.