Enum show_image::Alpha
source · pub enum Alpha {
Unpremultiplied,
Premultiplied,
}
Expand description
Possible alpha representations.
See also: https://en.wikipedia.org/wiki/Alpha_compositing#Straight_versus_premultiplied
Variants§
Unpremultiplied
The alpha channel is encoded only in the alpha component of the pixel.
Premultiplied
The alpha channel is also premultiplied into the other components of the pixel.
Trait Implementations§
source§impl PartialEq for Alpha
impl PartialEq for Alpha
impl Copy for Alpha
impl Eq for Alpha
impl StructuralPartialEq for Alpha
Auto Trait Implementations§
impl Freeze for Alpha
impl RefUnwindSafe for Alpha
impl Send for Alpha
impl Sync for Alpha
impl Unpin for Alpha
impl UnwindSafe for Alpha
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.