Skip to main content

render_bitmap

Function render_bitmap 

Source
pub fn render_bitmap(ops: Vec<DrawOp>, size: Size, scale: f64) -> RenderBitmap ⓘ
Expand description

Replay ops into an offscreen bitmap of size points at scale pixels per point, through the toolkit’s own canvas painter. Resolves with a Bitmap like a decode does, so image(&bitmap), Draw::image and Bitmap::encode all take it. Apps reach this through Drawing::to_bitmap.

Day API ↩ Guides· daybrite.dev