[][src]Function ggez::graphics::screenshot

pub fn screenshot(ctx: &mut Context) -> GameResult<Image>

Take a screenshot by outputting the current render surface (screen or selected canvas) to a PNG file.