glance-core 0.2.0

A high-level core library for image IO, display, and drawing operations.
Documentation
1
2
3
4
5
6
7
8
use crate::Result;
use crate::img::Image;
use crate::img::pixel::Pixel;

/// Trait for anything that can be overlayed on top of an image.
pub trait Drawable<P: Pixel> {
    fn draw_on(&self, image: &mut Image<P>) -> Result<()>;
}