pub struct Image {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}Expand description
A decoded image: width, height and RGBA pixels, row by row.
Fields§
§width: u32The width in pixels.
height: u32The height in pixels.
rgba: Vec<u8>Four bytes per pixel: red, green, blue, alpha.
Trait Implementations§
impl Eq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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