pub struct ImageData {
pub width: u32,
pub height: u32,
pub samples: Samples,
pub mask: Option<ImageMask>,
pub matte: Option<Rgb>,
pub interpolate: bool,
}Expand description
A fully decoded image.
Fields§
§width: u32Width in samples, from the codec when it disagreed with the dictionary.
height: u32Height in samples.
samples: SamplesThe samples, in whichever state the decode left them.
mask: Option<ImageMask>The alpha, however it was expressed.
matte: Option<Rgb>The /Matte colour a pre-blended soft-masked image was composed
against.
interpolate: bool/Interpolate, a hint the renderer may honour.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ImageData
Auto Trait Implementations§
impl Freeze for ImageData
impl RefUnwindSafe for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnsafeUnpin for ImageData
impl UnwindSafe for ImageData
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