pub struct Thumbnail {
pub rgba: Vec<u8>,
pub width: u32,
pub height: u32,
}Expand description
Raw thumbnail data returned by the library.
Contains uncompressed RGBA8 pixel data in row-major order.
Each pixel is 4 bytes: [R, G, B, A].
Total byte length = width * height * 4.
Fields§
§rgba: Vec<u8>Raw RGBA8 pixel data, row-major, no padding.
width: u32Width of the thumbnail in pixels.
height: u32Height of the thumbnail in pixels.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Thumbnail
impl RefUnwindSafe for Thumbnail
impl Send for Thumbnail
impl Sync for Thumbnail
impl Unpin for Thumbnail
impl UnsafeUnpin for Thumbnail
impl UnwindSafe for Thumbnail
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