pub struct RgbaBitmap {
pub width: u32,
pub height: u32,
pub data: Vec<u8>,
}Expand description
A grayscale-irrelevant straight-alpha RGBA8 bitmap. Stride is
width * 4. Mirrors the data layout of the now-removed
oxideav_scribe::RgbaBitmap so the TextRenderer API stays
byte-stable across the round-2 vector-pipeline migration.
Fields§
§width: u32Bitmap width in pixels.
height: u32Bitmap height in pixels.
data: Vec<u8>Row-major straight-alpha RGBA8 bytes (width * height * 4).
Implementations§
Trait Implementations§
Source§impl Clone for RgbaBitmap
impl Clone for RgbaBitmap
Source§fn clone(&self) -> RgbaBitmap
fn clone(&self) -> RgbaBitmap
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 moreSource§impl Debug for RgbaBitmap
impl Debug for RgbaBitmap
Source§impl Default for RgbaBitmap
impl Default for RgbaBitmap
Source§fn default() -> RgbaBitmap
fn default() -> RgbaBitmap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RgbaBitmap
impl RefUnwindSafe for RgbaBitmap
impl Send for RgbaBitmap
impl Sync for RgbaBitmap
impl Unpin for RgbaBitmap
impl UnsafeUnpin for RgbaBitmap
impl UnwindSafe for RgbaBitmap
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