Struct distance_field::Options [] [src]

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

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

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.

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: Options { size: (64, 64), max_distance: 512, image_treshold: 127 }

[src]

Returns the "default value" for a type. Read more