pub struct Snapshot {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}Expand description
RGBA8 pixels, unpremultiplied as AppKit returns them, at backing resolution.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
rgba: Vec<u8>Pixels, row by row from the top.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Snapshot
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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