Struct ndk::bitmap::BitmapInfo
source · pub struct BitmapInfo { /* private fields */ }
Available on crate feature
bitmap
only.Expand description
A native AndroidBitmapInfo
Implementations§
source§impl BitmapInfo
impl BitmapInfo
pub fn new(width: u32, height: u32, stride: u32, format: BitmapFormat) -> Self
pub fn new_with_flags( width: u32, height: u32, stride: u32, format: BitmapFormat, flags: BitmapInfoFlags ) -> Self
Available on crate feature
api-level-30
only.sourcepub fn format(&self) -> BitmapFormat
pub fn format(&self) -> BitmapFormat
Convert the internal, native ffi::AndroidBitmapInfo::format
into a BitmapFormat
.
sourcepub fn flags(&self) -> BitmapInfoFlags
Available on crate feature api-level-30
only.
pub fn flags(&self) -> BitmapInfoFlags
api-level-30
only.Bitfield containing information about the bitmap.
Trait Implementations§
source§impl Clone for BitmapInfo
impl Clone for BitmapInfo
source§fn clone(&self) -> BitmapInfo
fn clone(&self) -> BitmapInfo
Returns a copy 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 BitmapInfo
impl Debug for BitmapInfo
impl Copy for BitmapInfo
Auto Trait Implementations§
impl Freeze for BitmapInfo
impl RefUnwindSafe for BitmapInfo
impl Send for BitmapInfo
impl Sync for BitmapInfo
impl Unpin for BitmapInfo
impl UnwindSafe for BitmapInfo
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