ScummVM API documentation
Sword25::ImgLoader Class Reference

#include <imgloader.h>

Static Public Member Functions

static bool decodePNGImage (const byte *pFileData, uint fileSize, Graphics::Surface *dest)
 
static bool decodeThumbnailImage (const byte *pFileData, uint fileSize, Graphics::Surface *dest)
 

Detailed Description

Class for loading PNG files, and PNG data embedded into savegames.

Originally written by Malte Thiesen.

Member Function Documentation

◆ decodePNGImage()

static bool Sword25::ImgLoader::decodePNGImage ( const byte *  pFileData,
uint  fileSize,
Graphics::Surface dest 
)
static

Decode an image.

Parameters
[in]fileDatePtrpointer to the image data
[in]fileSizesize of the image data in bytes
[out]destif successful, surface will contain the image data (storage is allocated via create).
Returns
false in case of an error
Remarks
This function does not free the image buffer passed to it, it is the callers responsibility to do so.

The documentation for this class was generated from the following file: