Skip to main content

blank_canvas_image

Function blank_canvas_image 

Source
pub fn blank_canvas_image() -> Image
Expand description

A 1×1 transparent image to back a freshly-spawned canvas until its first rasterization (which happens once the node has a laid-out size). Kept in both worlds so update_canvas_surfaces can mutate the CPU copy and have it re-upload.