#[non_exhaustive]pub enum ImageMask {
ColorKey(ColorKey),
Alpha {
width: u32,
height: u32,
alpha: Box<[u8]>,
stencil: bool,
},
}Expand description
An image’s alpha, however it was expressed.
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.
ColorKey(ColorKey)
A /Mask array naming transparent sample values.
Alpha
A separate grayscale image, /SMask or a /Mask stream, at its own
resolution — masks are never resolution-reduced, so a 400×400 mask
stays 400×400 even beside a 50×50 base image.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ImageMask
Auto Trait Implementations§
impl Freeze for ImageMask
impl RefUnwindSafe for ImageMask
impl Send for ImageMask
impl Sync for ImageMask
impl Unpin for ImageMask
impl UnsafeUnpin for ImageMask
impl UnwindSafe for ImageMask
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