Enum ndk::bitmap::BitmapInfoFlagsAlpha
source · #[non_exhaustive]#[repr(u32)]pub enum BitmapInfoFlagsAlpha {
Premultiplied = 0,
Opaque = 1,
Unpremultiplied = 2,
}
Available on crate features
bitmap
and api-level-30
only.Expand description
Possible values for ffi::ANDROID_BITMAP_FLAGS_ALPHA_MASK
within BitmapInfoFlags
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Premultiplied = 0
Pixel components are premultiplied by alpha.
Opaque = 1
Pixels are opaque.
Unpremultiplied = 2
Pixel components are independent of alpha.
Trait Implementations§
source§impl Clone for BitmapInfoFlagsAlpha
impl Clone for BitmapInfoFlagsAlpha
source§fn clone(&self) -> BitmapInfoFlagsAlpha
fn clone(&self) -> BitmapInfoFlagsAlpha
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 BitmapInfoFlagsAlpha
impl Debug for BitmapInfoFlagsAlpha
source§impl From<BitmapInfoFlagsAlpha> for u32
impl From<BitmapInfoFlagsAlpha> for u32
source§fn from(enum_value: BitmapInfoFlagsAlpha) -> Self
fn from(enum_value: BitmapInfoFlagsAlpha) -> Self
Converts to this type from the input type.
source§impl From<u32> for BitmapInfoFlagsAlpha
impl From<u32> for BitmapInfoFlagsAlpha
source§impl FromPrimitive for BitmapInfoFlagsAlpha
impl FromPrimitive for BitmapInfoFlagsAlpha
impl Copy for BitmapInfoFlagsAlpha
Auto Trait Implementations§
impl Freeze for BitmapInfoFlagsAlpha
impl RefUnwindSafe for BitmapInfoFlagsAlpha
impl Send for BitmapInfoFlagsAlpha
impl Sync for BitmapInfoFlagsAlpha
impl Unpin for BitmapInfoFlagsAlpha
impl UnwindSafe for BitmapInfoFlagsAlpha
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