Struct webp::Encoder [−][src]
pub struct Encoder<'a> { /* fields omitted */ }
Expand description
An encoder for WebP images. It uses the default configuration of libwebp.
Implementations
Creates a new encoder from the given image data. The image data must be in the pixel layout of the color parameter.
Creates a new encoder from the given image.
Creates a new encoder from the given image data in the RGB pixel layout.
Creates a new encoder from the given image data in the RGBA pixel layout.
Emcode the image with the given quality. The image quality must be between 0.0 and 100.0 inclusive for minimal and maximal quality respectively.
Emcode the image losslessly.