Trait distance_field::DistanceFieldExt
[−]
[src]
pub trait DistanceFieldExt { fn distance_field(&self, options: Options) -> ImageBuffer<Luma<u8>, Vec<u8>>; }
A trait adding the distance_field
function to image types.
Required Methods
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
impl DistanceFieldExt for DynamicImage
[src]
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)
.