pub struct LcdBitmap {
pub width: u32,
pub height: u32,
pub rgb: Vec<u8>,
}Expand description
An LCD subpixel bitmap.
Stores three bytes per pixel (R, G, B) corresponding to the physical sub-pixel layout of an LCD screen. LCD rendering allows individual sub-pixel addressing for smoother horizontal antialiasing at small sizes on colour displays.
The buffer length must equal width * height * 3.
Fields§
§width: u32Width in pixels (each pixel contains 3 sub-pixel bytes).
height: u32Height in pixels.
rgb: Vec<u8>Sub-pixel data in RGB order: width * height * 3 bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LcdBitmap
impl RefUnwindSafe for LcdBitmap
impl Send for LcdBitmap
impl Sync for LcdBitmap
impl Unpin for LcdBitmap
impl UnsafeUnpin for LcdBitmap
impl UnwindSafe for LcdBitmap
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