ScummVM API documentation
Ultima::Ultima4::ImageLoader Class Referenceabstract

#include <imageloader.h>

Inheritance diagram for Ultima::Ultima4::ImageLoader:
Ultima::Ultima4::FMTOWNSImageLoader Ultima::Ultima4::PngImageLoader Ultima::Ultima4::U4LzwImageLoader Ultima::Ultima4::U4RawImageLoader Ultima::Ultima4::U4RleImageLoader

Public Member Functions

virtual Imageload (Common::SeekableReadStream &stream, int width, int height, int bpp)=0
 

Static Protected Member Functions

static void setFromRawData (Image *image, int width, int height, int bpp, const byte *rawData)
 
static void setFromSurface (Image *image, const Graphics::ManagedSurface &src)
 

Detailed Description

The generic image loader interface. Image loaders should override the load method to load an image from a U4FILE and register themselves with registerLoader. By convention, the type parameter of load and registerLoader is the standard mime type of the image file (e.g. image/png) or an xu4 specific mime type (e.g. image/x-u4...).

Member Function Documentation

◆ setFromRawData()

static void Ultima::Ultima4::ImageLoader::setFromRawData ( Image image,
int  width,
int  height,
int  bpp,
const byte *  rawData 
)
staticprotected

Fill in the image pixel data from an uncompressed string of bytes.

◆ setFromSurface()

static void Ultima::Ultima4::ImageLoader::setFromSurface ( Image image,
const Graphics::ManagedSurface src 
)
staticprotected

Sets the image from a source image


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