pub struct Bitmap<T: BitmapBackend> { /* private fields */ }
Implementations§
Source§impl<T: BitmapBackend> Bitmap<T>
impl<T: BitmapBackend> Bitmap<T>
pub fn new( context: Option<&DeviceContext<T::DeviceContextType>>, width: usize, height: usize, pixel_format: BitmapPixelFormat, canvas: &Canvas<T::CanvasType>, ) -> Result<Self, GraphicsError>
pub fn from_buffer( context: Option<&DeviceContext<T::DeviceContextType>>, buffer: &[u8], pitch: usize, width: usize, height: usize, pixel_format: BitmapPixelFormat, canvas: &Canvas<T::CanvasType>, ) -> Result<Self, GraphicsError>
Auto Trait Implementations§
impl<T> Freeze for Bitmap<T>where
T: Freeze,
impl<T> RefUnwindSafe for Bitmap<T>where
T: RefUnwindSafe,
impl<T> Send for Bitmap<T>where
T: Send,
impl<T> Sync for Bitmap<T>where
T: Sync,
impl<T> Unpin for Bitmap<T>where
T: Unpin,
impl<T> UnwindSafe for Bitmap<T>where
T: UnwindSafe,
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