pub struct RasterImage {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}Expand description
An RGBA8 image buffer with a transparent background, the rasterizer’s render target.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
rgba: Vec<u8>Row-major RGBA8 pixels.
Auto Trait Implementations§
impl Freeze for RasterImage
impl RefUnwindSafe for RasterImage
impl Send for RasterImage
impl Sync for RasterImage
impl Unpin for RasterImage
impl UnsafeUnpin for RasterImage
impl UnwindSafe for RasterImage
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