34#include "SILLYImageContext.h"
35#include "SILLYDataSource.h"
36#include "SILLYImageLoader.h"
151#ifdef SILLY_OPT_INLINE
152#include "SILLYImage.icpp"
Simple Image Loading LibrarY namespace.
PixelFormat
List all pixel format supported.
PixelOrigin
List all pixel origin supported.
This is an abstract class used to provide data to the loader.
Image(DataSource &data)
Constructor.
bool loadImageHeader()
Retrieve the information concerning the image object.
PixelFormat getSourcePixelFormat() const
Retrieve the pixel format used for the image storage.
const char * getLoaderIdentifierString() const
Get Image loader identifier string.
const byte * getPixelsDataPtr() const
Get a pointer to the pixels data.
bool isValid() const
Return true if the image is valid after its loading.
size_t getPixelsDataSize() const
Get the size of the pixel buffer.
bool loadImageData(PixelFormat resultFormat=PF_RGBA, PixelOrigin origin=PO_TOP_LEFT)
Load the image pixels in memory and store them in resultFormat.
size_t getWidth() const
Retrieve the width of the image.
PixelFormat getPixelFormat() const
Retrieve the pixel format of the resulting image.
size_t getHeight() const
Retrieve the height of the image.
Store the data needed by an ImageLoader object during the parsing of an image.
This is an abstract class that define the interface of all image loader.