pub struct Preview {
pub size: Vec2<usize>,
pub pixel_data: Vec<i8>,
}
Expand description
A small rgba
image of i8
values that approximates the real exr image.
Fields§
§size: Vec2<usize>
The dimensions of the preview image.
pixel_data: Vec<i8>
An array with a length of 4 × width × height.
The pixels are stored in LineOrder::Increasing
.
Each pixel consists of the four u8
values red, green, blue, alpha.
Implementations§
Trait Implementations§
source§impl PartialEq for Preview
impl PartialEq for Preview
impl Eq for Preview
impl StructuralPartialEq for Preview
Auto Trait Implementations§
impl Freeze for Preview
impl RefUnwindSafe for Preview
impl Send for Preview
impl Sync for Preview
impl Unpin for Preview
impl UnwindSafe for Preview
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