Enum BlendOp
#[repr(u8)]
pub enum BlendOp
How pixels are written into the buffer.
Variants
-
Source = 0 Pixels overwrite the value at their position.
-
Over = 1 The new pixels are blended into the current state based on alpha.
Implementations
impl BlendOp
fn from_u8(n: u8) -> Option<BlendOp>u8 -> Self. Using enum_primitive or transmute is probably the right thing but this will do for now.
Trait Implementations
impl Clone for BlendOp
fn clone(&self) -> Self
impl Copy for BlendOp
impl Debug for BlendOp
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for BlendOp
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for BlendOp
impl PartialEq for BlendOp
fn eq(&self, other: &Self) -> bool