pub fn capture_window<Win: WindowExt>(
win: &mut Win,
) -> Result<RgbImage, FltkError>Expand description
Captures the window and returns raw data. Example usage:
use fltk::{prelude::*, *};
let mut win = window::Window::default();
let image = draw::capture_window(&mut win).unwrap();ยงErrors
The api can fail to capture the window as an image