pub struct ScreenCapture {
pub width: u32,
pub height: u32,
pub bits_per_pixel: u16,
pub pixels: Vec<u8>,
}Expand description
A parsed TH-D75 screen capture.
Contains the validated image metadata and raw BGR pixel data as stored in the BMP file (bottom-up row order).
Fields§
§width: u32Image width in pixels. Expected: 240 for TH-D75.
height: u32Image height in pixels. Expected: 180 for TH-D75.
bits_per_pixel: u16Bits per pixel. Expected: 24 for TH-D75.
pixels: Vec<u8>Raw BGR pixel data in bottom-up row order.
Each pixel is 3 bytes: blue, green, red. Rows are stored from the bottom of the image to the top, as is standard for BMP files. Row padding (to 4-byte alignment) is stripped.
Trait Implementations§
Source§impl Clone for ScreenCapture
impl Clone for ScreenCapture
Source§fn clone(&self) -> ScreenCapture
fn clone(&self) -> ScreenCapture
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScreenCapture
impl Debug for ScreenCapture
Source§impl PartialEq for ScreenCapture
impl PartialEq for ScreenCapture
impl Eq for ScreenCapture
impl StructuralPartialEq for ScreenCapture
Auto Trait Implementations§
impl Freeze for ScreenCapture
impl RefUnwindSafe for ScreenCapture
impl Send for ScreenCapture
impl Sync for ScreenCapture
impl Unpin for ScreenCapture
impl UnwindSafe for ScreenCapture
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