Skip to main content

encode

Function encode 

Source
pub fn encode(image: &Image, precision: Precision<f64>) -> Result<Vec<u8>>
Expand description

Encode an image into a LERC blob with the given precision.

This entry point clones the image’s pixel buffer when called via the owning Image path. To avoid that clone, see encode_borrowed, which takes a borrowed &[T] and image-shape parameters directly.