ScummVM API documentation
Image::ImageDecoder Class Referenceabstract

#include <image_decoder.h>

Inheritance diagram for Image::ImageDecoder:
Director::BITDDecoder Director::DIBDecoder Image::BitmapDecoder Image::BRCDecoder Image::Cel3DODecoder Image::CicnDecoder Image::DoodleDecoder Image::HLZFileDecoder Image::HNMFileDecoder Image::IFFDecoder Image::JPEGDecoder Image::NeoDecoder Image::PCXDecoder Image::PICTDecoder Image::PNGDecoder Image::ScrDecoder Image::TGADecoder Image::XBMDecoder MM::MM1::Gfx::ScreenDecoder Prince::MhwanhDecoder Sludge::HSIDecoder Supernova::MSNImage Ultima::Ultima4::U4ImageDecoder

Public Member Functions

virtual bool loadStream (Common::SeekableReadStream &stream)=0
 
virtual void destroy ()=0
 
virtual const Graphics::SurfacegetSurface () const =0
 
virtual const Graphics::PalettegetPalette () const =0
 
virtual bool hasPalette () const
 
virtual bool hasTransparentColor () const
 
virtual uint32 getTransparentColor () const
 
virtual const Graphics::SurfacegetMask () const
 
virtual bool hasMask () const
 

Detailed Description

A representation of an image decoder that maintains ownership of the surface and palette it decodes to.

This is designed for still frames only.

Member Function Documentation

◆ loadStream()

◆ destroy()

◆ getSurface()

◆ getPalette()

virtual const Graphics::Palette& Image::ImageDecoder::getPalette ( ) const
pure virtual

◆ hasPalette()

virtual bool Image::ImageDecoder::hasPalette ( ) const
inlinevirtual

Query whether the decoded image has a palette.

◆ hasTransparentColor()

virtual bool Image::ImageDecoder::hasTransparentColor ( ) const
inlinevirtual

Query whether the decoded image has a transparent color.

Reimplemented in Image::PNGDecoder.

◆ getTransparentColor()

virtual uint32 Image::ImageDecoder::getTransparentColor ( ) const
inlinevirtual

Return the transparent color.

Reimplemented in Image::PNGDecoder.

◆ getMask()

virtual const Graphics::Surface* Image::ImageDecoder::getMask ( ) const
inlinevirtual

Get the mask data for the decoded image.

Reimplemented in Image::CicnDecoder.

◆ hasMask()

virtual bool Image::ImageDecoder::hasMask ( ) const
inlinevirtual

Query whether the decoded image has a mask.


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