#[repr(C)]pub struct Bitmap<T> { /* private fields */ }
Expand description
Bitmap object
Implementations§
source§impl<T> Bitmap<T>where
T: PngColorType + Copy,
T::PngPixelType: From<T>,
impl<T> Bitmap<T>where
T: PngColorType + Copy,
T::PngPixelType: From<T>,
source§impl<T> Bitmap<T>where
T: PngColorType + From<<T as PngColorType>::PngPixelType>,
T::PngPixelType: Copy,
impl<T> Bitmap<T>where
T: PngColorType + From<<T as PngColorType>::PngPixelType>,
T::PngPixelType: Copy,
source§impl<T> Bitmap<T>
impl<T> Bitmap<T>
sourcepub fn pixels_mut(&mut self) -> &mut [T] ⓘ
pub fn pixels_mut(&mut self) -> &mut [T] ⓘ
Get pixel data slice for writing to
sourcepub fn raw_pixels(&self) -> &[u8] ⓘ
pub fn raw_pixels(&self) -> &[u8] ⓘ
Get raw pixels data for reading from
sourcepub fn raw_pixels_mut(&mut self) -> &mut [u8] ⓘ
pub fn raw_pixels_mut(&mut self) -> &mut [u8] ⓘ
Get raw pixels data for writing to