pub struct Image {
pub data: Vec<u8>,
pub width: u32,
pub height: u32,
}Expand description
A raster image stored as raw RGBA pixel data.
Fields§
§data: Vec<u8>Raw pixel data in RGBA order, row-major, with 4 * width * height
bytes.
width: u32Width of the image in pixels.
height: u32Height of the image in pixels.
Trait Implementations§
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