pub enum PngRaster {
Gray8(Raster<SGray8>),
Gray16(Raster<SGray16>),
Rgb8(Raster<SRgb8>),
Rgb16(Raster<SRgb16>),
Palette(Raster<Gray8>, Box<Palette>, Vec<u8>),
Graya8(Raster<SGraya8>),
Graya16(Raster<SGraya16>),
Rgba8(Raster<SRgba8>),
Rgba16(Raster<SRgba16>),
}
Expand description
A Raster of one of the PNG types (all are sRGB gamma). PNGs with less than 8 bits per channel are scaled up to 8 bits per channel.
Variants§
Gray8(Raster<SGray8>)
1, 2, 4, 8-bit greyscale
Gray16(Raster<SGray16>)
16-bit grayscale
Rgb8(Raster<SRgb8>)
8-bit sRGB
Rgb16(Raster<SRgb16>)
16-bit sRGB
Palette(Raster<Gray8>, Box<Palette>, Vec<u8>)
1, 2, 4, 8-bit sRGB(A) palette
Graya8(Raster<SGraya8>)
8-bit grayscale with alpha
Graya16(Raster<SGraya16>)
16-bit grayscale with alpha
Rgba8(Raster<SRgba8>)
8-bit sRGB with alpha
Rgba16(Raster<SRgba16>)
16-bit sRGB with alpha
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PngRaster
impl RefUnwindSafe for PngRaster
impl Send for PngRaster
impl Sync for PngRaster
impl Unpin for PngRaster
impl UnwindSafe for PngRaster
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