pub struct Encoder<'a> { /* private fields */ }
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.

Encode the image with the given quality. The image quality must be between 0.0 and 100.0 inclusive for minimal and maximal quality respectively.

Encode the image losslessly.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.