pub struct ImageData {
pub width: u32,
pub height: u32,
pub row_bytes: usize,
pub rgba: Vec<u8>,
}Expand description
Decoded RGBA pixel data from an SVG render operation.
Pixels are stored in premultiplied alpha, RGBA8888 format (4 bytes per pixel, row-major order).
Fields§
§width: u32Width of the image in pixels.
height: u32Height of the image in pixels.
row_bytes: usizeNumber of bytes per row (width × 4).
rgba: Vec<u8>Flat pixel buffer in RGBA8888 premultiplied format.
Trait Implementations§
impl Eq for ImageData
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