pub struct RasterImage {
pub width: usize,
pub height: usize,
pub channels: usize,
pub bit_depth: u8,
pub samples: Vec<u16>,
}Expand description
A raster image with interleaved samples, shared by the lossless formats.
Fields§
§width: usize§height: usize§channels: usize1 (grey), 2 (grey + alpha), 3 (RGB) or 4 (RGBA).
bit_depth: u88 or 16.
samples: Vec<u16>Row-major interleaved samples, width · height · channels of them, each below
2^bit_depth.
Implementations§
Trait Implementations§
Source§impl Clone for RasterImage
impl Clone for RasterImage
Source§impl Debug for RasterImage
impl Debug for RasterImage
impl Eq for RasterImage
Source§impl PartialEq for RasterImage
impl PartialEq for RasterImage
impl StructuralPartialEq for RasterImage
Auto Trait Implementations§
impl Freeze for RasterImage
impl RefUnwindSafe for RasterImage
impl Send for RasterImage
impl Sync for RasterImage
impl Unpin for RasterImage
impl UnsafeUnpin for RasterImage
impl UnwindSafe for RasterImage
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