pub struct TransparencyOptions {
pub mode: TransparencyMode,
pub key_color: Option<String>,
pub transparent_threshold: u8,
pub opaque_threshold: u8,
pub despill: bool,
}Expand description
Transparent-background implementation and matte controls.
Fields§
§mode: TransparencyModeAutomatic, provider-native, or local chroma-key transparency.
key_color: Option<String>Optional explicit chroma key in #RRGGBB form.
transparent_threshold: u8Per-channel distance at or below which a key pixel becomes transparent.
opaque_threshold: u8Per-channel distance at or above which a pixel becomes opaque.
despill: boolRemove key-colored spill from partially transparent edges.
Trait Implementations§
Source§impl Clone for TransparencyOptions
impl Clone for TransparencyOptions
Source§fn clone(&self) -> TransparencyOptions
fn clone(&self) -> TransparencyOptions
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 moreSource§impl Debug for TransparencyOptions
impl Debug for TransparencyOptions
Source§impl Default for TransparencyOptions
impl Default for TransparencyOptions
Source§impl<'de> Deserialize<'de> for TransparencyOptionswhere
TransparencyOptions: Default,
impl<'de> Deserialize<'de> for TransparencyOptionswhere
TransparencyOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TransparencyOptions
Source§impl JsonSchema for TransparencyOptions
impl JsonSchema for TransparencyOptions
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TransparencyOptions
impl PartialEq for TransparencyOptions
Source§impl Serialize for TransparencyOptions
impl Serialize for TransparencyOptions
impl StructuralPartialEq for TransparencyOptions
Auto Trait Implementations§
impl Freeze for TransparencyOptions
impl RefUnwindSafe for TransparencyOptions
impl Send for TransparencyOptions
impl Sync for TransparencyOptions
impl Unpin for TransparencyOptions
impl UnsafeUnpin for TransparencyOptions
impl UnwindSafe for TransparencyOptions
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