irox_imagery

Trait Image

Source
pub trait Image {
    type DimType;

    // Required methods
    fn get_dimensions(&self, space: ImageSpace) -> Self::DimType;
    fn get_width_pixels(&self) -> u32;
    fn get_height_pixels(&self) -> u32;
    fn get_pixel_value(&self, x: u32, y: u32) -> Option<Color>;
}

Required Associated Types§

Required Methods§

Implementors§