Skip to main content

save_png

Function save_png 

Source
pub fn save_png(v: &Value, path: &Path) -> Result<(), String>
Expand description

Decode a ui.screenshot reply’s PNG and write it. Write the PNG in a ui.screenshot reply ({"png": base64}) to path, making its folder.