Public Member Functions | |
void | destroy () override |
bool | loadStream (Common::SeekableReadStream &stream) override |
const Graphics::Surface * | getSurface () const override |
const byte * | getPalette () const override |
void | loadPalette (Common::SeekableReadStream &stream) |
uint16 | getPaletteColorCount () const override |
Public Member Functions inherited from Image::ImageDecoder | |
virtual bool | hasPalette () const |
virtual bool | hasTransparentColor () const |
virtual uint32 | getTransparentColor () const |
|
overridevirtual |
Destroy this decoder's surface and palette.
This should be called by a loadStream() implementation as well as by the destructor.
Implements Image::ImageDecoder.
|
overridevirtual |
Load an image from the specified stream.
loadStream() should implicitly call destroy() to free the memory of the last loadStream() call.
stream | Input stream. |
Implements Image::ImageDecoder.
|
inlineoverridevirtual |
Get the decoded surface.
This surface is owned by this ImageDecoder and remains valid until destroy() or loadStream() is called, or until the destructor of this ImageDecoder is called.
Implements Image::ImageDecoder.
|
inlineoverridevirtual |
Get the decoded palette.
This palette is owned by this ImageDecoder and remains valid until destroy() or loadStream() is called, or until the destructor of this ImageDecoder is called.
The format of the palette is the same as that of the PaletteManager's palette. (interleaved RGB values).
Reimplemented from Image::ImageDecoder.
|
inlineoverridevirtual |
Return the number of colors in the palette.
Reimplemented from Image::ImageDecoder.