pub struct Bitmap {
pub width: u16,
pub height: u16,
pub srgba: Vec<u8>,
}
Expand description
Pixel data
Fields§
§width: u16
Width of the image
height: u16
Height of the image
srgba: Vec<u8>
Pixels in sRGBA format
Auto Trait Implementations§
impl Freeze for Bitmap
impl RefUnwindSafe for Bitmap
impl Send for Bitmap
impl Sync for Bitmap
impl Unpin for Bitmap
impl UnwindSafe for Bitmap
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