pub enum AlphaFormat {
Premul,
Unpremul,
Opaque,
}Expand description
Describes how to interpret the alpha component of a pixel.
Variants§
Premul
All pixels have their alpha premultiplied in their color components.
Unpremul
All pixels have their color components stored without any regard to the alpha, e.g. they are unpremultiplied.
Opaque
All pixels are stored as opaque.
Trait Implementations§
Source§impl Clone for AlphaFormat
impl Clone for AlphaFormat
impl Copy for AlphaFormat
Source§impl Debug for AlphaFormat
impl Debug for AlphaFormat
Source§impl Default for AlphaFormat
impl Default for AlphaFormat
impl Eq for AlphaFormat
Source§impl Hash for AlphaFormat
impl Hash for AlphaFormat
Source§impl PartialEq for AlphaFormat
impl PartialEq for AlphaFormat
impl StructuralPartialEq for AlphaFormat
Auto Trait Implementations§
impl Freeze for AlphaFormat
impl RefUnwindSafe for AlphaFormat
impl Send for AlphaFormat
impl Sync for AlphaFormat
impl Unpin for AlphaFormat
impl UnsafeUnpin for AlphaFormat
impl UnwindSafe for AlphaFormat
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more