pub fn encode(rgba: &Array3<u8>, format: TileFormat) -> AgResult<Bytes>Expand description
Encode an interleaved RGBA (H, W, 4) tile to format.
PNG is always available. WebP and JPEG require their respective cargo features; requesting them in a build without the feature returns an error.