[][src]Function signed_distance_field::binary_image::of_byte_slice

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

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