Enum graphicsmagick::types::PaintMethod
source · #[repr(u32)]
pub enum PaintMethod {
PointMethod,
ReplaceMethod,
FloodfillMethod,
FillToBorderMethod,
ResetMethod,
Unknown,
}
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
Replace pixel color at point.
ReplaceMethod
Replace color for all image pixels matching color at point.
FloodfillMethod
Replace color for pixels surrounding point until encountering pixel that fails to match color at point.
FillToBorderMethod
Replace color for pixels surrounding point until encountering pixels matching border color.
ResetMethod
Replace colors for all pixels in image with pen color.
Unknown
Trait Implementations§
source§impl Clone for PaintMethod
impl Clone for PaintMethod
source§fn clone(&self) -> PaintMethod
fn clone(&self) -> PaintMethod
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 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<PaintMethod> for PaintMethod
impl PartialEq<PaintMethod> for PaintMethod
source§fn eq(&self, other: &PaintMethod) -> bool
fn eq(&self, other: &PaintMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.