pub struct Mask { /* private fields */ }
Expand description
A Mask is an image with only an 8-bit alpha channel.
It can be obtained from a Plotter after plotting. A Raster can be composited with a Mask.
Example
use footile::{PathBuilder,Plotter};
let path = PathBuilder::new()
.move_to(10.0, 10.0)
.line_to(90.0, 90.0)
.build();
let mut p = Plotter::new(100, 100);
let mask = p.stroke(&path);
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mask
impl Send for Mask
impl Sync for Mask
impl Unpin for Mask
impl UnwindSafe for Mask
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