render_canvas_offscreen

Function render_canvas_offscreen 

Source
pub fn render_canvas_offscreen<'a, DrawStream, RenderContext>(
    context: &'a mut RenderContext,
    width: usize,
    height: usize,
    scale: f32,
    actions: DrawStream,
) -> impl 'a + Future<Output = Vec<u8>>
where DrawStream: 'a + Stream<Item = Draw>, RenderContext: 'a + OffscreenRenderContext,
Expand description

Renders a canvas in an offscreen context, returning the resulting bitmap