pub struct Raster { /* private fields */ }
Expand description
A raster image.
Example
use footile::{Color,PathBuilder,Plotter,Raster};
let path = PathBuilder::new().pen_width(5f32)
.move_to(16f32, 48f32)
.line_to(32f32, 0f32)
.line_to(-16f32, -32f32)
.close().build();
let mut p = Plotter::new(100, 100);
let mut r = Raster::new(p.width(), p.height());
p.stroke(&path);
r.color_over(p.mask(), Color::rgb(208, 255, 208));
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Raster
impl Send for Raster
impl Sync for Raster
impl Unpin for Raster
impl UnwindSafe for Raster
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more