pub fn encode(
(width, height): (u16, u16),
source: (u16, u16),
styles: &[&[u8]],
mask: Option<&[u8]>,
) -> Result<Vec<u8>, &'static str>Expand description
The file of a width × height picture made from a PNG of
source size: styles (each Bitmap::plane_bytes long) and the
mask they share, or what is wrong with them.