Skip to main content

export_pixels

Function export_pixels 

Source
pub fn export_pixels(size: Size, scale: f64) -> (u32, u32)
Expand description

The pixel size a drawing of size points renders to at scale pixels per point: each side rounded up, so a drawing never loses its last partial pixel. Shared by day-core’s limit check and every backend, so the bitmap a backend allocates is the one day-core approved.

Day API ↩ Guides· daybrite.dev