pub enum BlipEffect {
BiLevel {
threshold: f64,
},
Grayscale,
Alpha {
amount: f64,
},
Luminance {
brightness: f64,
contrast: f64,
},
Duotone {
shadow: Option<ColorValue>,
highlight: Option<ColorValue>,
},
ColorChange {
from: Option<ColorValue>,
to: Option<ColorValue>,
use_alpha: bool,
},
}Expand description
Bitmap effects with unresolved colours.
Variants§
BiLevel
a:biLevel: luminance below threshold becomes black, the rest white.
Grayscale
a:grayscl.
Alpha
a:alphaModFix: the whole bitmap drawn at amount opacity.
Luminance
a:lum: brightness and contrast, each a fraction in -1.0..=1.0.
Duotone
a:duotone: luminance interpolates between the two colours.
ColorChange
Exact colour replacement.
Trait Implementations§
Source§impl Clone for BlipEffect
impl Clone for BlipEffect
Source§impl Debug for BlipEffect
impl Debug for BlipEffect
Source§impl<'de> Deserialize<'de> for BlipEffect
impl<'de> Deserialize<'de> for BlipEffect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BlipEffect
impl PartialEq for BlipEffect
Source§impl Serialize for BlipEffect
impl Serialize for BlipEffect
impl StructuralPartialEq for BlipEffect
Auto Trait Implementations§
impl Freeze for BlipEffect
impl RefUnwindSafe for BlipEffect
impl Send for BlipEffect
impl Sync for BlipEffect
impl Unpin for BlipEffect
impl UnsafeUnpin for BlipEffect
impl UnwindSafe for BlipEffect
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