pub(crate) struct DecodedImage {
pub width: u32,
pub height: u32,
pub rgb8: Vec<u8>,
}Expand description
One decoded raster image, ready to be lowered onto a
[mos_core::NodeKind::Image] node.
Fields§
§width: u32Decoded width in pixels.
height: u32Decoded height in pixels.
rgb8: Vec<u8>Flat RGB8 byte buffer (3 * width * height bytes). Alpha
channels are composited onto an opaque white background during
decode so the PDF emit path can ship /DeviceRGB directly.
Trait Implementations§
Source§impl Clone for DecodedImage
impl Clone for DecodedImage
Source§fn clone(&self) -> DecodedImage
fn clone(&self) -> DecodedImage
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 moreAuto Trait Implementations§
impl Freeze for DecodedImage
impl RefUnwindSafe for DecodedImage
impl Send for DecodedImage
impl Sync for DecodedImage
impl Unpin for DecodedImage
impl UnsafeUnpin for DecodedImage
impl UnwindSafe for DecodedImage
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