#[non_exhaustive]pub enum AlphaOp {
On,
Off,
Remove,
Set,
Transparent,
}Expand description
-alpha SUBCOMMAND. ImageMagick exposes a small grammar of alpha-channel
edits — we cover the ones with deterministic semantics on RGBA buffers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
On
on / activate — enable alpha (no-op when output is already RGBA).
Off
off / deactivate — strip the alpha channel from the output
(Rgba → Rgb24).
Remove
remove — composite the image over the current -background
colour and force every output pixel’s alpha to 255.
Set
set / opaque — set every alpha sample to 255 without
compositing.
Transparent
transparent — set every alpha sample to 0 without touching
the colour channels.
Implementations§
Trait Implementations§
impl Copy for AlphaOp
impl Eq for AlphaOp
impl StructuralPartialEq for AlphaOp
Auto Trait Implementations§
impl Freeze for AlphaOp
impl RefUnwindSafe for AlphaOp
impl Send for AlphaOp
impl Sync for AlphaOp
impl Unpin for AlphaOp
impl UnsafeUnpin for AlphaOp
impl UnwindSafe for AlphaOp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.