[][src]Trait signed_distance_field::binary_image::BinaryImage

pub trait BinaryImage {
    fn width(&self) -> u16;
fn height(&self) -> u16;
fn is_inside(&self, x: u16, y: u16) -> bool; }

Represents an image with each pixel being either true or false, corresponding to inside-the-shape and outside-of-the-shape respectively. BinaryImages can be created from byte slices or piston images if the feature piston_image is activated.

Required methods

fn width(&self) -> u16

fn height(&self) -> u16

fn is_inside(&self, x: u16, y: u16) -> bool

Loading content...

Implementors

impl<'_> BinaryImage for BinaryByteSliceImage<'_>[src]

Loading content...