pub struct ChromaKeyOptions {
pub key: ChromaKey,
pub transparent_threshold: u8,
pub opaque_threshold: u8,
pub despill: bool,
}Expand description
Controls for a soft chroma matte.
Fields§
§key: ChromaKeyKnown key color requested from the image model.
transparent_threshold: u8Distance at or below which a pixel becomes fully transparent.
opaque_threshold: u8Distance at or above which a pixel becomes fully opaque.
despill: boolRemove key-colored spill from partially transparent edges.
Trait Implementations§
Source§impl Clone for ChromaKeyOptions
impl Clone for ChromaKeyOptions
Source§fn clone(&self) -> ChromaKeyOptions
fn clone(&self) -> ChromaKeyOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChromaKeyOptions
Source§impl Debug for ChromaKeyOptions
impl Debug for ChromaKeyOptions
Source§impl Default for ChromaKeyOptions
impl Default for ChromaKeyOptions
impl Eq for ChromaKeyOptions
Source§impl PartialEq for ChromaKeyOptions
impl PartialEq for ChromaKeyOptions
impl StructuralPartialEq for ChromaKeyOptions
Auto Trait Implementations§
impl Freeze for ChromaKeyOptions
impl RefUnwindSafe for ChromaKeyOptions
impl Send for ChromaKeyOptions
impl Sync for ChromaKeyOptions
impl Unpin for ChromaKeyOptions
impl UnsafeUnpin for ChromaKeyOptions
impl UnwindSafe for ChromaKeyOptions
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