[][src]Function signed_distance_field::binary_image::of_byte_slice_with_threshold

pub fn of_byte_slice_with_threshold(
    buffer: &[u8],
    width: u16,
    height: u16,
    threshold: u8
) -> BinaryByteSliceImage

Create a binary image from a row major byte slice with each byte brighter than the threshold being "inside-the-shape"