pub struct PhlowBitmap { /* private fields */ }
Implementations§
Source§impl PhlowBitmap
impl PhlowBitmap
pub fn new( pixels: impl ToOwned<Owned = Vec<u8>>, width: i32, height: i32, stride: i32, format: PixelFormat, ) -> Self
pub fn rgba8( pixels: impl ToOwned<Owned = Vec<u8>>, width: i32, height: i32, ) -> Self
pub fn bgra8( pixels: impl ToOwned<Owned = Vec<u8>>, width: i32, height: i32, ) -> Self
pub fn pixels(&self) -> &[u8] ⓘ
pub fn stride(&self) -> i32
Trait Implementations§
Source§impl Clone for PhlowBitmap
impl Clone for PhlowBitmap
Source§fn clone(&self) -> PhlowBitmap
fn clone(&self) -> PhlowBitmap
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PhlowBitmap
impl Debug for PhlowBitmap
Source§impl Default for PhlowBitmap
impl Default for PhlowBitmap
Source§fn default() -> PhlowBitmap
fn default() -> PhlowBitmap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PhlowBitmap
impl RefUnwindSafe for PhlowBitmap
impl Send for PhlowBitmap
impl Sync for PhlowBitmap
impl Unpin for PhlowBitmap
impl UnwindSafe for PhlowBitmap
Blanket Implementations§
Source§impl<T> AsPhlowObject for T
impl<T> AsPhlowObject for T
default fn is_phlow_object(&self) -> bool
default fn try_into_phlow_object(&self) -> Option<PhlowObject>
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