#[repr(u32)]pub enum PaintMethod {
PointMethod = 0,
ReplaceMethod = 1,
FloodfillMethod = 2,
FillToBorderMethod = 3,
ResetMethod = 4,
Unknown = 4_294_967_295,
}
Expand description
PaintMethod specifies how pixel colors are to be replaced in the image. It is used to select the pixel-filling algorithm employed.
Variants§
PointMethod = 0
Replace pixel color at point.
ReplaceMethod = 1
Replace color for all image pixels matching color at point.
FloodfillMethod = 2
Replace color for pixels surrounding point until encountering pixel that fails to match color at point.
FillToBorderMethod = 3
Replace color for pixels surrounding point until encountering pixels matching border color.
ResetMethod = 4
Replace colors for all pixels in image with pen color.
Unknown = 4_294_967_295
Trait Implementations§
Source§impl Clone for PaintMethod
impl Clone for PaintMethod
Source§fn clone(&self) -> PaintMethod
fn clone(&self) -> PaintMethod
Returns a duplicate 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 PaintMethod
impl Debug for PaintMethod
Source§impl From<PaintMethod> for u32
impl From<PaintMethod> for u32
Source§fn from(enum_value: PaintMethod) -> Self
fn from(enum_value: PaintMethod) -> Self
Converts to this type from the input type.
Source§impl From<u32> for PaintMethod
impl From<u32> for PaintMethod
Source§impl FromPrimitive for PaintMethod
impl FromPrimitive for PaintMethod
Source§impl PartialEq for PaintMethod
impl PartialEq for PaintMethod
impl Copy for PaintMethod
impl Eq for PaintMethod
impl StructuralPartialEq for PaintMethod
Auto Trait Implementations§
impl Freeze for PaintMethod
impl RefUnwindSafe for PaintMethod
impl Send for PaintMethod
impl Sync for PaintMethod
impl Unpin for PaintMethod
impl UnwindSafe for PaintMethod
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