ScummVM
thumbnail.cpp File Reference

Go to the source code of this file.

Namespaces

 Graphics
 

Enumerations

enum  Graphics::@9038::HeaderState
 

Functions

bool Graphics::checkThumbnailHeader (Common::SeekableReadStream &in)
 Checks for presence of the thumbnail save header. More...
 
bool Graphics::skipThumbnail (Common::SeekableReadStream &in)
 Skips a thumbnail, if present. More...
 
bool Graphics::loadThumbnail (Common::SeekableReadStream &in, Graphics::Surface *&thumbnail, bool skipThumbnail=false)
 Loads a thumbnail from the given input stream. More...
 
bool Graphics::saveThumbnail (Common::WriteStream &out)
 Saves a thumbnail to the given write stream. More...
 
bool Graphics::saveThumbnail (Common::WriteStream &out, const Graphics::Surface &thumb)
 Saves a (given) thumbnail to the given write stream. More...
 
int * Graphics::scaleLine (int size, int srcSize)
 Returns an array indicating which pixels of a source image horizontally or vertically get included in a scaled image. More...
 
Graphics::SurfaceGraphics::scale (const Graphics::Surface &srcImage, int xSize, int ySize)
 Scales a passed surface, creating a new surface with the result. More...
 

Enumeration Type Documentation

◆ HeaderState

enum Graphics::@9038::HeaderState

Definition at line 47 of file thumbnail.cpp.

Variable Documentation

◆ format

PixelFormat format

Definition at line 42 of file thumbnail.cpp.

◆ height

uint16 height

Definition at line 41 of file thumbnail.cpp.

◆ size

uint32 size

Definition at line 39 of file thumbnail.cpp.

◆ type

uint32 type

Definition at line 38 of file thumbnail.cpp.

◆ version

byte version

Definition at line 40 of file thumbnail.cpp.

◆ width

uint16 width

Definition at line 41 of file thumbnail.cpp.