Skip to main content

encode

Function encode 

Source
pub fn encode(image: &Image, options: &EncodeOptions) -> Result<Vec<u8>, Error>
Expand description

Encodes an Image (e.g. one decoded by decode) as a HEIC file: in 8 bits, or in 10 bits (HEVC Main 10) for images of more bits per sample, which keeps smooth gradients free of banding.