pub fn encode(
pixels: &PixelBuffer,
encoding: Encoding,
) -> Result<Vec<u8>, EncodeError>Expand description
encode writes pixels as a file in encoding. Pixels of any layout are taken, turned into
packed rows of straight RGBA first when they aren’t already.