Function flo_draw::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 Future<Output = Vec<u8, Global>> + 'awhere
DrawStream: 'a + Stream<Item = Draw>,
RenderContext: 'a + OffscreenRenderContext,
Expand description
Renders a canvas in an offscreen context, returning the resulting bitmap