pub struct Screenshot { /* private fields */ }Expand description
An image buffer containing the screenshot. Pixels are stored as ARGB.
Implementations§
Source§impl Screenshot
impl Screenshot
Sourcepub fn pixel_width(&self) -> usize
pub fn pixel_width(&self) -> usize
Width of pixel in bytes.
Sourcepub unsafe fn raw_data_mut(&mut self) -> *mut u8
pub unsafe fn raw_data_mut(&mut self) -> *mut u8
§Safety
Raw bitmap.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Screenshot
impl RefUnwindSafe for Screenshot
impl Send for Screenshot
impl Sync for Screenshot
impl Unpin for Screenshot
impl UnwindSafe for Screenshot
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