pub struct Bitmap {
pub size: Size,
pub buffer: Vec<u8>,
}Expand description
RGBA bitmap image data.
Contains the raw pixel data from a rendered waveform in RGBA format. Each pixel is represented by 4 consecutive bytes (R, G, B, A) in sRGB color space.
Fields§
§size: SizeImage dimensions in pixels
buffer: Vec<u8>Raw RGBA pixel data (4 bytes per pixel)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bitmap
impl RefUnwindSafe for Bitmap
impl Send for Bitmap
impl Sync for Bitmap
impl Unpin for Bitmap
impl UnsafeUnpin 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