[][src]Type Definition nanachi::rasterize::RasterizeBuffer

type RasterizeBuffer = GenericBuffer<f64>;

Implementations

impl RasterizeBuffer[src]

pub fn new(width: u32, height: u32) -> Self[src]

pub fn rasterize(
    &mut self,
    segments: impl Iterator<Item = (Point, Point)>,
    fill_rule: impl FillRule,
    writer: &mut impl FnMut(u32, u32, f64),
    write_transparent_src: bool
)
[src]

Write the area of the [Path].

pub fn rasterize_no_aa(
    &mut self,
    segments: impl Iterator<Item = (Point, Point)>,
    fill_rule: impl FillRule,
    writer: &mut impl FnMut(u32, u32, f64),
    write_transparent_src: bool
)
[src]

Write the area of the [Path] without anti-aliasing.

pub fn transfer(
    &mut self,
    fill_rule: impl FillRule,
    writer: &mut impl FnMut(u32, u32, f64),
    write_transparent_src: bool,
    bound: [f64; 4]
)
[src]