pub struct ContourOptions {
pub contrast_adjustment: f32,
pub detects_dark_on_light: bool,
}Available on crate feature
contours only.Expand description
Options for detect_contours_in_path.
Fields§
§contrast_adjustment: f320.0..=1.0 — Apple’s per-pixel contrast adjustment before
detection. Default 2.0 in the SDK; we mirror that.
detects_dark_on_light: boolIf true, look for dark shapes against a light background.
If false, light shapes against a dark background.
Trait Implementations§
Source§impl Clone for ContourOptions
impl Clone for ContourOptions
Source§fn clone(&self) -> ContourOptions
fn clone(&self) -> ContourOptions
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 ContourOptions
impl Debug for ContourOptions
Source§impl Default for ContourOptions
impl Default for ContourOptions
impl Copy for ContourOptions
Auto Trait Implementations§
impl Freeze for ContourOptions
impl RefUnwindSafe for ContourOptions
impl Send for ContourOptions
impl Sync for ContourOptions
impl Unpin for ContourOptions
impl UnsafeUnpin for ContourOptions
impl UnwindSafe for ContourOptions
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