Crate wpf_gpu_raster

source ·
Expand description

Converts a 2D path into a set of vertices of a triangle strip mesh that represents the antialiased fill of that path.

    use wpf_gpu_raster::PathBuilder;
    let mut p = PathBuilder::new();
    p.move_to(10., 10.);
    p.line_to(40., 10.);
    p.line_to(40., 40.);
    let result = p.rasterize_to_tri_list(0, 0, 100, 100);

Modules

Structs

Enums

Functions