Enum image_webp::ColorType
source · pub enum ColorType {
L8,
La8,
Rgb8,
Rgba8,
}
Expand description
Color type of the image.
Note that the WebP format doesn’t have a concept of color type. All images are encoded as RGBA and some decoders may treat them as such. This enum is used to indicate the color type of the input data provided to the encoder, which can help improve compression ratio.
Variants§
L8
Opaque image with a single luminance byte per pixel.
La8
Image with a luminance and alpha byte per pixel.
Rgb8
Opaque image with a red, green, and blue byte per pixel.
Rgba8
Image with a red, green, blue, and alpha byte per pixel.
Trait Implementations§
source§impl PartialEq for ColorType
impl PartialEq for ColorType
impl Copy for ColorType
impl Eq for ColorType
impl StructuralPartialEq for ColorType
Auto Trait Implementations§
impl Freeze for ColorType
impl RefUnwindSafe for ColorType
impl Send for ColorType
impl Sync for ColorType
impl Unpin for ColorType
impl UnwindSafe for ColorType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more