#[repr(u8)]pub enum MethodForDiffuse {
Auto = 0,
None = 1,
Atkinson = 2,
Fs = 3,
Jajuni = 4,
Stucki = 5,
Burkes = 6,
ADither = 7,
XDither = 8,
}
Expand description
Method for diffusing
Variants§
Auto = 0
Choose diffusion type automatically
None = 1
Don’t diffuse
Atkinson = 2
Diffuse with Bill Atkinson’s method
Fs = 3
Diffuse with Floyd-Steinberg method
Jajuni = 4
Diffuse with Jarvis, Judice & Ninke method
Stucki = 5
Diffuse with Stucki’s method
Burkes = 6
Diffuse with Burkes’ method
ADither = 7
Positionally stable arithmetic dither
XDither = 8
Positionally stable arithmetic XOR-based dither
Implementations§
Source§impl MethodForDiffuse
impl MethodForDiffuse
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new MethodForDiffuse.
Sourcepub const fn is_mask(&self) -> bool
pub const fn is_mask(&self) -> bool
Gets whether the MethodForDiffuse applies a mask.
Trait Implementations§
Source§impl Clone for MethodForDiffuse
impl Clone for MethodForDiffuse
Source§fn clone(&self) -> MethodForDiffuse
fn clone(&self) -> MethodForDiffuse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MethodForDiffuse
impl Debug for MethodForDiffuse
Source§impl Default for MethodForDiffuse
impl Default for MethodForDiffuse
Source§fn default() -> MethodForDiffuse
fn default() -> MethodForDiffuse
Returns the “default value” for a type. Read more
Source§impl PartialEq for MethodForDiffuse
impl PartialEq for MethodForDiffuse
impl Copy for MethodForDiffuse
impl StructuralPartialEq for MethodForDiffuse
Auto Trait Implementations§
impl Freeze for MethodForDiffuse
impl RefUnwindSafe for MethodForDiffuse
impl Send for MethodForDiffuse
impl Sync for MethodForDiffuse
impl Unpin for MethodForDiffuse
impl UnwindSafe for MethodForDiffuse
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