Trait distance_field::DistanceFieldExt
source · 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§
sourcefn distance_field(&self, options: Options) -> ImageBuffer<Luma<u8>, Vec<u8>>
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
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)
.