pub struct Pixmap { /* private fields */ }Expand description
A pixmap of premultiplied RGBA8 values backed by u8.
Implementations§
Source§impl Pixmap
impl Pixmap
Sourcepub fn data_as_u8_slice(&self) -> &[u8] ⓘ
pub fn data_as_u8_slice(&self) -> &[u8] ⓘ
Returns a reference to the underlying data as premultiplied RGBA8.
The pixels are in row-major order. Each pixel consists of four bytes in the order
[r, g, b, a].
Sourcepub fn data_as_u8_slice_mut(&mut self) -> &mut [u8] ⓘ
pub fn data_as_u8_slice_mut(&mut self) -> &mut [u8] ⓘ
Returns a mutable reference to the underlying data as premultiplied RGBA8.
The pixels are in row-major order. Each pixel consists of four bytes in the order
[r, g, b, a].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pixmap
impl RefUnwindSafe for Pixmap
impl Send for Pixmap
impl Sync for Pixmap
impl Unpin for Pixmap
impl UnwindSafe for Pixmap
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