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

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

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