Struct rasterize::ActiveEdgeRasterizer
source · pub struct ActiveEdgeRasterizer { /* private fields */ }
Expand description
Active-Edge rasterizer
This method is based on the data structure Edge-Table which keeps all lines ordered by lower y coordinate, and then scanning over all pixels line by line, once lower pixel of a line is reached line is activated and put into Active-Edge-Table, and later deactivated once once scan line covers point with the highest y coordinate.
Reference: Computer graphics principles and practice (by Foley) 3.6 Filling Polygons.
Implementations§
Trait Implementations§
source§impl Clone for ActiveEdgeRasterizer
impl Clone for ActiveEdgeRasterizer
source§fn clone(&self) -> ActiveEdgeRasterizer
fn clone(&self) -> ActiveEdgeRasterizer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ActiveEdgeRasterizer
impl Debug for ActiveEdgeRasterizer
source§impl Default for ActiveEdgeRasterizer
impl Default for ActiveEdgeRasterizer
source§impl Rasterizer for ActiveEdgeRasterizer
impl Rasterizer for ActiveEdgeRasterizer
source§fn mask(
&self,
path: &Path,
tr: Transform,
img: &mut dyn ImageMut<Pixel = Scalar>,
fill_rule: FillRule
)
fn mask( &self, path: &Path, tr: Transform, img: &mut dyn ImageMut<Pixel = Scalar>, fill_rule: FillRule )
Rasterize provided path as mask with transformation applied, and
specified fill rule.
Auto Trait Implementations§
impl Freeze for ActiveEdgeRasterizer
impl RefUnwindSafe for ActiveEdgeRasterizer
impl Send for ActiveEdgeRasterizer
impl Sync for ActiveEdgeRasterizer
impl Unpin for ActiveEdgeRasterizer
impl UnwindSafe for ActiveEdgeRasterizer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more