pub trait DistanceFieldExt {
    fn distance_field(&self, options: Options) -> ImageBuffer<Luma<u8>, Vec<u8>>;
Expand description

A trait adding the distance_field function to image types.

Required Methods

Generates a grayscale output image with the dimensions as specified in the Options struct.

Implementations on Foreign Types

A implementation of the distance_field function for the DynamicImage type. To call this from a normal RGB image use image.grayscale().distance_field(options).