Function fltk::draw::capture_window[][src]

pub fn capture_window<Win: WindowExt>(
    win: &mut Win
) -> Result<RgbImage, FltkError>
Expand description

Captures part of 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