pub struct ColorBitmap {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}Expand description
An RGBA color glyph bitmap.
Produced by color-font rendering (COLR/CPAL, CBDT, sbix, SVG). Pixels are stored in row-major RGBA order, four bytes per pixel.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
rgba: Vec<u8>Pixel data in RGBA order: width * height * 4 bytes.
Implementations§
Trait Implementations§
Source§impl Clone for ColorBitmap
impl Clone for ColorBitmap
Source§fn clone(&self) -> ColorBitmap
fn clone(&self) -> ColorBitmap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColorBitmap
impl RefUnwindSafe for ColorBitmap
impl Send for ColorBitmap
impl Sync for ColorBitmap
impl Unpin for ColorBitmap
impl UnsafeUnpin for ColorBitmap
impl UnwindSafe for ColorBitmap
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