[][src]Struct distance_field::Options

pub struct Options {
    pub size: (u32, u32),
    pub max_distance: u16,
    pub image_treshold: u8,
}

The options passed as the argument to the distance_field method.

Fields

size: (u32, u32)

The dimensions of the output image (width, height). The default value is: (64,64).

max_distance: u16

The maximum distance for the projected point of the output image on the input image to search for the nearest point. The defaul value is: 512.

image_treshold: u8

The image value at which to apply the treshold. In a black-white vector image 127 is probably the best value. The default value is: 127.

Trait Implementations

impl Default for Options[src]

Returns:

    size: (64, 64),
    max_distance: 512,
    image_treshold: 127
}```

Auto Trait Implementations

impl Sync for Options

impl Send for Options

impl Unpin for Options

impl RefUnwindSafe for Options

impl UnwindSafe for Options

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.