Function encode
pub fn encode<W>(pixmap: &Pixmap<'_>, writer: &mut W, options: &Options) -> boolwhere
W: Write,Expand description
Encode the src pixels to the dst stream.
options may be used to control the encoding behavior.
Returns true on success. Returns false on an invalid or unsupported src.