Function ggez::graphics::screenshot [−][src]
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.
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.