pub fn screenshot<T: AsRef<str>>(
compositor: &mut Compositor,
renderer: &mut Renderer,
viewport: &Viewport,
background_color: Color,
overlay: &[T],
) -> Vec<u8> ⓘ
Expand description
Renders the current surface to an offscreen buffer.
Returns RGBA bytes of the texture data.