MTek-GDL 0.100.4-muffintrap
Loading...
Searching...
No Matches
Data Structures | Functions
Image Handling Module

Image loading and saving functions and classes. More...

Data Structures

class  gdl::ImageWii
 Image handling class. More...
 

Functions

void gdl::SaveScreen (const char *fileName)
 Saves a screenshot.
 

Detailed Description

Image loading and saving functions and classes.

Function Documentation

◆ SaveScreen()

void gdl::SaveScreen ( const char *  fileName)

Saves a screenshot.

Saves a screenshot and saves it as a 24-bit PNG image with maximum compression. Because of that, encoding the image will take about roughly half a second.

Note
As of v0.80 and onwards, this function can be called anywhere but the actual screen capture will take place once gdl::Display() is called. This is so that the screenshot will always be the same as what is seen on the TV and it also allows taking screenshots while in anti-aliased mode.
When taking a screenshot while in anamorphic widescreen mode, the image will not be stretched horizontally for correct aspect ratio so it had to be manually stretched with an image editing program.
Parameters
[in]fileNameFile name (may contain a path) of the output image file (must end with .png).