API for managing screen thumbnails used for save games.
Functions | |
bool | Graphics::checkThumbnailHeader (Common::SeekableReadStream &in) |
bool | Graphics::skipThumbnail (Common::SeekableReadStream &in) |
bool | Graphics::loadThumbnail (Common::SeekableReadStream &in, Graphics::Surface *&thumbnail, bool skipThumbnail=false) |
bool | Graphics::createThumbnail (Graphics::Surface &thumb) |
bool | Graphics::saveThumbnail (Common::WriteStream &out) |
bool | Graphics::saveThumbnail (Common::WriteStream &out, const Graphics::Surface &thumb) |
bool | Graphics::createScreenShot (Graphics::Surface &surf) |
Graphics::Surface * | Graphics::scale (const Graphics::Surface &srcImage, int xSize, int ySize) |
bool Graphics::checkThumbnailHeader | ( | Common::SeekableReadStream & | in | ) |
Checks for presence of the thumbnail save header. Seeks automatically back to start position after check.
in | stream to check for header |
bool Graphics::skipThumbnail | ( | Common::SeekableReadStream & | in | ) |
Skips a thumbnail, if present.
in | stream to process |
bool Graphics::loadThumbnail | ( | Common::SeekableReadStream & | in, |
Graphics::Surface *& | thumbnail, | ||
bool | skipThumbnail = false |
||
) |
Loads a thumbnail from the given input stream.
bool Graphics::createThumbnail | ( | Graphics::Surface & | thumb | ) |
Creates a thumbnail from screen contents.
bool Graphics::saveThumbnail | ( | Common::WriteStream & | out | ) |
Saves a thumbnail to the given write stream. Automatically creates a thumbnail from screen contents.
bool Graphics::saveThumbnail | ( | Common::WriteStream & | out, |
const Graphics::Surface & | thumb | ||
) |
Saves a (given) thumbnail to the given write stream.
bool Graphics::createScreenShot | ( | Graphics::Surface & | surf | ) |
Grabs framebuffer into surface
surf | a surface |
Graphics::Surface* Graphics::scale | ( | const Graphics::Surface & | srcImage, |
int | xSize, | ||
int | ySize | ||
) |
Scales a passed surface, creating a new surface with the result
srcImage | Source image to scale |
xSize | New surface width |
ySize | New surface height |