iced_tiny_skia::window::compositor

Function screenshot

source
pub fn screenshot<T: AsRef<str>>(
    renderer: &mut Renderer,
    viewport: &Viewport,
    background_color: Color,
    overlay: &[T],
) -> Vec<u8>