pub trait DistanceFieldExt {
    // Required method
    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§

source

fn distance_field(&self, options: Options) -> ImageBuffer<Luma<u8>, Vec<u8>>

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

Implementations on Foreign Types§

source§

impl DistanceFieldExt for DynamicImage

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).

Implementors§