#include <SILLYImage.h>
Collaboration diagram for Image:
Public Member Functions | |
size_t | getHeight () const |
Retrieve the height of the image. | |
const char * | getLoaderIdentifierString () const |
Get Image loader identifier string. | |
PixelFormat | getPixelFormat () const |
Retrieve the pixel format of the resulting image. | |
const byte * | getPixelsDataPtr () const |
Get a pointer to the pixels data. | |
size_t | getPixelsDataSize () const |
Get the size of the pixel buffer. | |
PixelFormat | getSourcePixelFormat () const |
Retrieve the pixel format used for the image storage. | |
size_t | getWidth () const |
Retrieve the width of the image. | |
Image (DataSource &data) | |
Constructor. | |
bool | isValid () const |
Return true if the image is valid after its loading. | |
bool | loadImageData (PixelFormat resultFormat=PF_RGBA, PixelOrigin origin=PO_TOP_LEFT) |
Load the image pixels in memory and store them in resultFormat. | |
bool | loadImageHeader () |
Retrieve the information concerning the image object. | |
~Image () | |
Destructor. |
Definition at line 46 of file SILLYImage.h.
Image | ( | DataSource & | data | ) |
Constructor.
data | the raw input containing the image |
Definition at line 48 of file SILLYImage.cpp.
bool loadImageData | ( | PixelFormat | resultFormat = PF_RGBA , |
|
PixelOrigin | origin = PO_TOP_LEFT | |||
) |
Load the image pixels in memory and store them in resultFormat.
resultFormat | the pixel format to be used for storing the result | |
origin | expected origin position for the pixels |
Definition at line 68 of file SILLYImage.cpp.
bool loadImageHeader | ( | ) |
Retrieve the information concerning the image object.
Definition at line 54 of file SILLYImage.cpp.